Is not forum fast enough? People answer when they have spare time. Discord is ill-suited for this.
It’s important to understand that that’s in no way a solution; that’s damage control. The problem is still unsolved. It happened once, it will happen again. The solution would be preventing the databases from getting corrupted.
To understand why are they getting corrupted, I still need an answer on this question:
Or you can read this, and see if anything applies in your usecase: How To Corrupt An SQLite Database File
You can look up how storj official container does it. Or you can read storagenode --help and construct .service file yourself. I’ve done this for rc.d on freebsd here: GitHub - arrogantrabbit/freebsd_storj_installer: Installer script for Storj on FreeBSD. You can adapt command lines from there too.