Changed to using MongoDb + first querying from mongoDB