We failed patients by prescribing too many opiates. Here’s how we’re changing