Use non-deprecated API to create Mongo client