Add code to delete files when their corresponding database entry is deleted