Script to delete unused files that are declared in a database