Handle non-existent files in the database.