fix db return error while updating with no rows affected