Tweaking the new table-checker: SQLite needs a different query.