Headache/Migraines

Katie
Hello,
I am 16 weeks with really terrible headaches it's gotten to the point that it's migraines and can't sleep. The doctor prescribed me fioricet but only as needed. I haven't taken it yet because I'm drinking lots more water and tried drinking a cup of tea that's caffeinated. Any one has used that prescription? This is my first baby/pregnancy.