[lib] Refactor integrity reducer to process threadStore ops with sqlite ops
Summary:
Refactor integrity reducer to use sqlite ops
Depends on D11287
Test Plan: flow check. Not sure how to best test this right now. Might need to test later in diff stack
Reviewers: kamil, tomek, michal
Reviewed By: kamil, michal
Subscribers: michal, ashoat
Differential Revision: https://phab.comm.dev/D11298