Add mongoDB support instead of memory