Back in the early 1800s the production of potassium nitrate (saltpeter), an essential component of gunpowder, was a booming industry.