The directions on the wiki don't work. It looks like the tools have been updated and the commands are different now.
https://wiki.mikrotik.com/wiki/Manual:T ... _db_repair
I poked around at it until I figured it out. Database repair is a bit out of my skillset, so this took too long.
These directions work with sqlite-tools-win32-x86-3210000.
Download sqlite from here, unzip to where ever you tend to put files you work with temporarily. I used my desktop.
https://www.sqlite.org/download.html
Copy the dude.db from the file folder in your routerboard to the same fold you've extracted sqlite3. Best to rename the dude.db to dude.orig.db so you won't have to change it later when you copy the newly created file back from the router.
sqlite3.exe dude.orig.db
.output objs.sql
.dump
.exit
Delete dude.db from the routerboard, start the dude back up to create a new, blank dude.db file. Copy that to the same folder you were working with previously.
sqlite3.exe dude.db
pragma integrity_check
delete from objs;
.read objs.sql
.quit