First cut of write code for SQLite databases