2 Keep the database and files in step

A record names its file by a stored name. Every name is new, and a stored file is never overwritten. A file only ever appears or goes away, so restores are simpler than they could be: