New studies are showing that people who have experienced inflammation and chronic pain for more than three months are at a higher risk of developing dementia.