add global variable DB that access current mongodb database.