Studies show that a certain nitrate-modifying bacteria found in the gut and mouth is linked in some way to migraines. There tends to be a higher volume of this bacteria in those who suffer from migraines. This is most likely due to the fact that the bacteria produce nitric oxide, which acts as a vasodilator.