add connection to mongodb, not tested yet