Fixed issue with mongo trying to drop db without connection