You'll want to be careful with sleep aid drugs, including melatonin.
The big issue is that you risk becoming dependent on them, even if just from a psychological point. You begin to train your mind to think you can't sleep without them. Then your body gets used to it and you need more and more.
Best thing to do for your long term wellness and sleep quality is to address the underlying stress causing your insomnia. Talk to a counselor or clergy if applicable to you.
Do this, as well as diet modification (no sugar/alcohol/caffeine) and exercise and these will begin to help. Consider maybe trying acupuncture too.
Further, maybe listen to a podcast while trying to sleep. There's one called "Sleep with Me" where a guy drones on about stuff but it helps distract your mind and is effective. I've used it on nights where sleep is tough (short night or before all-nighter, etc).
Good luck to you. I've talked to people with insomnia and it's not fun though in most cases it will pass with a little extra effort on your part.