Fixed MongoDB connection and bodyParser setup