Update and delete some duplicates