Fixed issue with id() clashes when storing profiles between flushes
Merge pull request #129 from ManThursday/fix_id_clash

Fixed issue with id() clashes when storing profiles between flushes