Is there a way to “write protect” a database to prevent accidental modification? I.e put it into “read-only” mode?
There is no mechanism in DEVONthink to do this.
You could lock the .dtBase file in the Get Info pane in the Finder.
Optionally you could modify permissions on the file but I’d consider that carefully before taking that approach.