add Upsert to transaction for MySQL-specific upsert