fix mysql on duplicate syntax