ESDEV-1531 Refactoring dbMaintenance class, how database is restored after tests run. Fix for oxUserTest, as this started failing after dbMaintenance refactoring.