Use of metformin, DPP-4 inhibitors, GLP-1 RAs and SGLT2 inhibitors were associated with lower risk of dementia, with a gradual decrease in risk of dementia for each increase in daily defined dose. The gene discussed is DPP4; the disease is dementia.