I would chime in just to say that you are NOT a bad person. This isn't something you can be held entirely responsible for, you know? The fact you recognize this as a bad thing and want help is perhaps the most crucial step to asserting YOU in control over Sophie.
I would just say as well to be careful with self medicating like that. It can have tragic results.