POULPE-469 Testcoverage and refactoring for Database backup
functionality - Making Sonar happy