started implementation of SQLite stuff