Only add UNIQUE KEYs after updating the data