class "BackupDatabase": test whether a backup is needed