Move from in-memory storage to MongoDB.