I've done it a few ways. echo commit > /n/db/0/ctl is kind of where one ends upOh I don't know.... Shoehorning a DB interface into a FS interface doesn't feel right but stranger things have happened.
for my limbo postgres module I never got round to the fs part. i just wrap the sql bits in their own adt