Added mongodb database support