The makeup of bacteria and other microbes in the gut may have a direct association with dementia risk, according to preliminary research.