put backup-databases script into new format