[SQLite/lib] implement shared SQLite interface
Summary:
Similar to D11111 but for SQLite.
We want to use API to received messages from lib/. We could unify more of existing code to fit into this interface but this will require some more changes to make types consistent - created ENG-7925,
Depends on D11725
Test Plan: Test this interface from /lib.
Reviewers: tomek, marcin
Reviewed By: marcin
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D11726