Connecting to mongo.