pub fn registry_db_path() -> Result<PathBuf>
Returns <data_dir>/registry.db. Ensures the parent directory exists.
<data_dir>/registry.db