Script copies shared uapi records so each upapp gets its own copy, then updates the link from apisetid to upappid.