Omit the SELECT command if the database is not configured (as the default database is 0 this should be no BC break)