Updates to CDM query

added ability to search by collection