remove duplicates with data migrations