Fix some bugs with updating multiple times and matching on the domain in the purl table.