Moving from REPLACE to INSERT ON DUPLICATE KEY UPDATE.