Query data from mongo db.