A searchable database shows, during the time period in question, more than 77 million painkillers made their way into Niagara County. That works out to 51 pills per person per year, a rate that's higher than the national average of around 35.

Erie County's rate of 48 pills per person per year was also higher than the national average.

Many counties in Appalachia were especially hard hit. In Mingo County, W.Va. — with a population of just around 24,000 people — drug companies sold more than 38 million prescription painkillers during the 7-year period.

The database includes data for every county in the country and also shows the top manufacturers, distributors and pharmacies in each county.