I thought of something else. When you have a bad headache, take either ibuprofen or naproxen sodium WITH sudafed (real sudafed, not that lousy new stuff called 'sudafed PE'). Painkillers alone are useless with sinus pain. You must use the sudafed as well. Optionally, guiafenisen is good too as it thins the mucous, making it easier for your body to expel.
Hope you feel better soon.