Evaluation of the relationship between the prevalence of diabetes and selected demographic factors