added query capability to monog repo