Diabetes significantly increases the risk of developing dementia