I too was suffering very badly from insomnia ... caused by an inability to shut my brain down enough to sleep. Or if I woke at night, the thoughts would be firing in all directions and getting back to sleep was impossible.
Went to a naturopath, was tested for all sorts of lacks/overs - ended up changing my diet radically (cutting out sugar, wheat, red meat and some dairy - still allowed some occasionally, just not every day) and taking herbs.
Wow!
I can instantly tell if I've been "naughty" with and overdose of the foods I'm not supposed to eat, as I sleep lousy that night. Also, if I forget to take the herbs I find it hard to nod off.
There are a lot of over the counter herbs available, just need to try a few different ones to see what works for you. Don't bother with those you buy from the supermarket, but a health food store has a good and effective variety.
I'm on Fusion Sleep.
Might help. I'm not a fan of synthetic drugs if they can be avoided through lifestyle changes.