1) Function of update a record in database