connection to mongo works