a pill is used for headaches