added connection to mongodb database