Moved update_record logic to relation.rb

The persistence.rb methods update_record and create_record