I'm modelling this stack after @kamil's recent one (see D12080) that introduced functions to `SQLiteAPI`. First I'm introducing the shared SQLite C++ code, and then I will introduce the layers on `native` and `web` that will interact with it. This diff also contains some web-specific customizations necessary on the SQLite C++ code.
In this diff I'm only fetching the original message text. Fetching the latest edit will come later, after I implement a SQLite index to query for related messages.
Depends on D12736