Unrelated medications were found to increase or decrease a person's risk of dementia.