added auth to mongo class