[sqlite] Add getInboundP2PMessagesByID query
Summary: https://linear.app/comm/issue/ENG-9713/mitigate-risk-of-olm-already-decrypted-or-keys-skipped
Test Plan: Test plan in the last diff in stack.
Reviewers: tomek, kamil
Reviewed By: kamil
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13897