I hope you'll realize that SQLite is a completely insecure hack, with insecure defaults and architecture.
Why not take a slower but proper DB?
eg https://research.checkpoint.com/2019/select-code_execution-f...
eg https://research.checkpoint.com/2019/select-code_execution-f...
We don't use SQLite—I don't know how you got that impression? You can find out more about TB's actual storage engine here [1].
However, I have only tremendous respect for SQLite. And to be fair, it's meant to be run embedded, the application is responsible for security, and many applications couldn't go far wrong picking SQLite. It's a fantastic piece of engineering.