This is the script I used to convert all existing media from the file
backend to the sqlite backend. I'm saving it for posterity.
It outputs shell commands to stdout, and SQL commands to stderr. These
can be piped to different files, examined, and run independently, e.g.
$ ./file-to-sqlite.sh 1>files.sh 2>files.sql
$ sh files.sh
$ sqlite3 jukebox.sqlite3 files.sql