integrated mongodb for queries