add host/database to query logging
tolerate domain list failure in master or slave mode