The bacteria in your mouth and on your tongue may be linked to changes in brain function as you age, new research suggested.