void addArchiveToDatabase(DatabaseHandle db, string path, string base, string ext)
Adds an archive reference to the database.