finished SQLite stuff