Added protection against dumping non-testing DB