Fixes the number of queries for SQLite.