A new study has found a link between mouth bacteria and cognitive health