Use db_name column to detect db for subdomain.