now upsert one record per row