Update for MongoDB connectoin