Update update method
Correct sql statement in update method