Only send dirty attributes when updating a record

Instead of sending all attributes of the record it now only sends dirty attributes