Fixe a bug in the update class for mysql