program to handle error in mysql
checking in sql update