M156: add conditional persisted_version update during deserialization

how about this? are there other databases being used? should I make similar changes for couchdb?