Apparently I wasn't storing the filename. Duh.
SQLite databases.