Pardon, this indeed works:
for $x in db:open("bccdc_covid19") return rename node $x//baz as "foo"but only for the first node baz -- how can I rename all of the nodes? Or match an Xpath?
It's CSV data, so the general layout (?) is csv/record/entry and instead of "record" I'd want that to be something else -- doesn't really matter what.