better querying from mongo