Update using case in mysql