Fixed many SQLite queries