Remove use of db_affected_rows