More stuff for CMSG_DB_QUERY