Use DB_NAME constant for SQL queries