Getting your concerns.
First stop self medication. Homoeopathy has wonderful medicines for the complainants you have described. Need to talk to you.
I have cured many such cases .You can contact me through Practo.
Next Steps
Try to analyse your problem, search out the reason for insomnia and work out on it. Search the triggering factors for migrane and as far as possible avoid them.
Health Tips
Stop self medication. Try reasoning out your problems.