Removed every single REPLACE and "replaced" it with UPSERT.