Merge pull request #38 from ruprict/features/dirty-attributes

only save dirty properties to db