With respect, I think that you may be over-medicalising your insomnia.
Sleep hygiene is usually highly effective for people who have problems with sleeping well. It involves learning and then applying good habits in preparation for sleep. In essence, it means that your bedroom should only be used for sleep and, if relevant, sexual intimacy.
There is a practical guide to sleep hygiene here
Sleep hygiene - Better Health Channel .