Thanks @nuttycom
I fixed an issue in my code where txs that are only spending would get detected and notes marked as spent but not recorded.
However, I can see 111 TXs in your database that don’t seem related to this wallet.
For example:
txid: FC58FD5934300DB504EE2C1B03993C30BAC80EF5FD3BC014D595D5E2B7F21390
It points to a t2t transaction.
In which table do you store the note witnesses?