Your problems are beautifully summed up by yourself.
You seem to be bit overweight
and also you are a diabetic on irregular medication
Both olay a significant role to produce ED.
Losing weight and good diabetic control should do a lot of good to you.Also there are medications for your help,for which you can consult a urologist
All the best