implemented Database (SQLite) Serialization