It's possible that the medication is preventing or hindering your weight loss. That is very common for all types of medications. It's always best to obstain from meds unless they are absolutely needed. Have you looked up natural cures for headaches? I know that Liver Flushes are very popular for that. Drinking lots of water with some salt is also very good. Do you drink coffee? How about soft drinks? Do you eat sugar. These could all be causing your migraines. Especially the coffee.