switch to using local mongodb database