[web] implement Outbound P2P Messages API on worker
Summary:
Worker code to interact with SQLite.
Depends on D12075
Test Plan: Tested in D12080
Reviewers: tomek, bartek, marcin
Reviewed By: marcin
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D12078