corrected update sql