moved HQueryManager to query package