fixed bug for update, fixed tests for update and mysql dialect