Manager to MongoDB with Functions