pub fn record_scan(report: &ScanReport, path: Option<&Path>) -> Result<()>
Records a privacy-local aggregate scan event.
Returns an error when the database cannot be opened, migrated, or written.