Add upsert sample.