change mongo db mode