connects to mongo database now