The One-Writer Media Database

Turn the tag CSVs scattered across your drive into one searchable index of every photo, clip and sound you own.
last updated · what has changed

the problem
My library has about 45,000 video clips, more than 650,000 photo rows and a growing pile of music, sound effects and voice takes. The taggers did their job: every folder has a CSV describing what's in it. None of them could answer one question across the whole drive, two of them disagreed about the same clip, and the photo index once held 1.06 million rows when the live CSVs listed about 657,000 photos. Everything extra pointed at files that were gone.
This kit is the layer I built above the taggers. Three SQLite databases, a contract every tagger writes to, merge rules that keep disagreements visible, a probe that measures what the models can't, and one rule that protects the whole thing: one machine writes, every other machine reads.
what's inside
The architecture blueprint: the problem, the pipeline, the tagger contract, staging and the rebuilt master table, the merge rules, controlled vocabulary, the probe pass with measured speeds, derived fields and buckets named for the slot they fill, incremental crawl and ghost pruning with a safety floor, duplicates, thumbnails, the search service, the one-writer rule, the refresh and scheduling, scaling notes, a setup checklist and a worked sample (PDF + Word)
The tagger CSV contract: every column for video, photo and audio, the value types, accepted aliases and exactly what gets rejected (PDF + Markdown)
The starter code: crawler, probe, vocabulary, query command, search service, thumbnails, exports, the one-writer layer, a self-test with 50-plus checks and the refresh script (Python + shell)
The SQL schemas: staging, master, full-text search, probe cache, run ledger and views for each medium (.sql)
Scheduling templates: launchd for macOS, cron, and systemd service and timer files for Linux (.plist, .service, .timer, .txt)
A sample library: tagger CSVs for a fictional food brand's shoot, with every edge case in it, plus a script that makes the test files (CSV + Python)
The terms of use: the first file in the download (PDF)
who it's for
Technical creators, small agencies, studios and in-house content teams with tens of thousands of photos, clips and audio files on a shared drive, who already tag them (or plan to) and want to search them without paying for a DAM.
your taggers write CSVs, but you still search in Finder
two taggers, or two runs of one tagger, disagree and you can't see where
deleted and moved files keep showing up in your search results
more than one machine needs to search the library
You'll need to be comfortable running Python scripts from a terminal. If you have a few hundred files, a spreadsheet will do.
preview



how it works
Point your taggers at the contract. One CSV per folder, rewritten whole each time. Any model, local or cloud.
Run the refresh on one machine. It crawls, validates, probes and rebuilds the index, and logs every rejected row.
Search from anywhere. The query command and the search service read the index from any machine, read-only, in seconds.
where the method comes from
This is the system behind my own media library, built with AI coding agents and running against a drive of about 45,000 clips and more than 650,000 photo rows. The speeds, row counts and failure stories in the blueprint are measured on it.
Machine names, paths, hosts, client folders and brand rules are gone. The sample library is a fictional food brand.
formats and delivery
One PDF blueprint with a matching Word file (.docx)
The tagger CSV contract as PDF and Markdown
A starter code folder: Python 3 (standard library plus Pillow), a bash refresh script, SQL schemas, scheduler templates and sample CSVs
One zip, delivered by download link as soon as payment clears
get the kit
$49, one time. One license for you or your organization.
All sales are final. Questions first? Email support@gallucci.net before you buy.
questions
Do I need a particular tagger or AI model?
No. The database reads CSVs and never calls a model. Any tagger that writes the contract's columns works: a local vision model, a cloud API, an audio classifier or a person with a spreadsheet.
Does it cost anything to run?
No API keys and no fees at query time. It uses SQLite, ffmpeg and Pillow, which are free. Your taggers' own costs are separate.
Mac only?
The code is Python and bash and runs on macOS and Linux. The scheduler templates cover launchd, cron and systemd. Windows works under WSL; the shell script needs bash.
Can several machines use the same database?
Yes, to read. One machine writes; every other machine reads read-only. The blueprint explains why, from SQLite's own documentation, checked on 2026-11-30.
Does it change or delete my media files?
No. It reads files and tags. Thumbnails and exports go into their own folders, and the duplicate list never deletes anything.
How big a library can it handle?
The design comes from a library of more than 650,000 photo rows. The starter code rebuilds the index in full each run, which is fine into the hundreds of thousands; the blueprint explains the incremental rebuild for when that stops fitting your refresh window.
Can I get a refund?
No. All sales are final, because a digital file can't be returned once it's delivered. If a file arrives corrupted or won't open, email support@gallucci.net within 30 days and I'll send a working copy. If you're not sure this fits your brand, email support@gallucci.net before you buy and ask.
Do I get updates?
No. You get the edition you buy, and nothing on this page promises updates. If a new edition comes out, it's sold as its own product.
Can I use it for clients?
Yes. One purchase is one license for you or your organization. An agency or freelancer can use it on any number of client accounts; the client gets the finished work, not the product files. A client that wants its own team using the files needs its own copy.
Does it guarantee results?
No. Every number in it is a planning figure with a date and a source, there to show the method. What you get out of it depends on your product, your market and how you run it.
what has changed
every change to this product, newest first. the download you buy today is the current version.
December 1, 2026: First released.
terms
Buying or using this product means you accept the gallucciNET terms of use: gallucci.net/terms. A copy (READ_ME_FIRST_terms_of_use.pdf) is the first file in the download.
about giovanni
giovanni gallucci has spent his career running social, content and launches for food and beverage brands. gallucciNET is his shop.
He hosts The Daily Trend Report, a morning podcast on food and beverage, content, social and AI (show notes at gallucci.net/podcasts), and wrote A Social Media Marketing Framework for Food and Beverage CPG Brands (2nd Edition) and Viral and Broke: A Field Guide to Social Media for Food and Beverage Brands. More at gallucci.net.
adage, emmy, telly & webby award-winning digital marketing consultant for purpose-driven food & beverage brands.