added mongodb database connection