Fixed bugs and changed MongoDB connection string