deletes rogue html files and updates db file