Connects to mongo