Getting activity from MongoDB