Do you know what's causing your headaches like allergies maybe? An allergy pill like Benadryl helps. As far as abdominal pain goes, perhaps you're in need of a med check to see if what you're taking is really working.
Caffeine can often help headaches but can totally destroy the gut. I know cherry juice is good for gout and arthritis pain. Maybe someone else will have more ideas.