fix mysql update on duplicate