Ignore `with_hints` when connected to a SQLite DB

SQLite doesn't support index hinting, so when connected to a SQLite
database we need to suppress it. Useful when locally running unit tests
on a SQLite database.