There has been a growing body of work on the role of our microbiome (the microorganisms in our gut). Many people consume sugar as a form of mood relief (comfort food). This article [here] makes a link between the gut and mental health and makes the point that those who consume a lot of sugar can experience greater fluctuations in mood. It suggests that limiting sugar consumption has a beneficial effect upon anxiety in particular.