POULPE-469 Testcoverage and refactoring for Database backup
functionality - making sonar happy