Use connection URI to connect to mongodb