update table.update to perform the same as upsert