how do you use medications to control blood sugar