Use MongoDB instead of in-memory database