add nosql query class