Change return code of update and delete