Pile foundation mud treatment system