Removing duplicates from attribute tables