return and update functions returns id of affected record