Medical management of type 2 diabetes