ESDEV-1531 Refactoring dbMaintenance class, how database is restored after tests run. Changing places test_config and db creation (as test_config.inc.php creates db dump) (cherry picked from commit f379673)