class "BackupDatabase": find last backup of given type

* cleaned up and added some unit tests