MySQL Insert OR Update of exists INSERT INTO `meta` SET `key`=:key, `value`=:value ON DUPLICATE KEY UPDATE `key`=:key, `value`=:value ",