A study of the descriptive epidemiology and clinical effectiveness of treatment for type 2 diabetes using routine general practice data