This issue was addressed by adding additional SQLite logging restrictions. This issue is fixed in iOS 16.5 and iPadOS 16.5, tvOS 16.5, macOS Ventura 13.4. An app may be able to bypass Privacy preferences.
https://support.apple.com/kb/HT213845
https://support.apple.com/kb/HT213844
https://support.apple.com/kb/HT213764
https://support.apple.com/en-us/HT213761