Refactor main compaction creation and restore not to use ORM
Summary:
This differential refactors main compaction creation and restore not to use ORM. At this point both
web and mobile apps are fully functional.
Test Plan:
Excute test plan for main compaction project:
https://linear.app/comm/issue/ENG-6146/final-testing-task
Additionally:
- Checkout from this stack to master.
- Disable database encryption.
- Download database from XCode.
- Execute sqlite3 comm.sqlite .schema > schema.sql
- Repeat 1-4 after checkout to this stack.
- Ensure schema.sql files are the same.
Reviewers: kamil, michal, atul
Reviewed By: kamil
Subscribers: atul, ashoat, tomek
Differential Revision: https://phab.comm.dev/D10709