I've had periods of insomnia. Personally, I liked https://en.wikipedia.org/wiki/Trazodone and it comes in generic. I've only ever needed to use it on a short-term basis.
Also, I think banning drug ads and the profession of pharmaceutical sales rep would go a long way toward fixing over-prescribing and medical costs. When the new Congress wants to reform Obamacare, someone should add this ban.