Query mode doesn't need the database