Serialize (key, value) pairs using SQLite.