Nice: I didn't know about the [returning](https://www.sqlite.org/lang_returning.html) clause - could be useful for other things as well. It won't quite work for what I need at the moment (but I see there are some features being looked at for future releases) - but good to know of this. Thanks!