Given this now has two SQL calls which need to both happen or neither, is `insertRevision` always called from within a database transaction?

I'm guessing so because otherwise a rev with `newSequence` could've been inserted before the rev insert happens, let alone the new insert for the attachments.