removing tags from paths and clearing out mysql print