Database issue: processing modified files every time

Someone on #emacs pointed me to
Enabling org-roam leads to launch error finalizer failed: (wrong-type-argument sqlitep nil) · Issue #8066 · doomemacs/doomemacs · GitHub,
which then forwards to
What is responsible for this db-sync 'finalizer failure' message? - #12 by akashp
I don’t fully get it though. I’m on emacs 30.1.