SQLite fixes