Refactored SqlPersistenceStore. Cleaned up serialization/deserialization code.