upsert returns record