Set up mongodb for memory storage