Some SQLite Fixes