[native] Extract unshimClientDB into function
Summary: To reduce copy-paste I'm extracting this into a function.
Test Plan: Flow
Reviewers: atul, kamil, bartek, rohan
Reviewed By: atul
Subscribers: tomek
Differential Revision: https://phab.comm.dev/D7338