Modified update_attributes to merge new values rather than overwrite.