changed mock to MongoDB