SQLite: fixes