Well you've taken a great step coming here.
I won't advise on dietary issues but I'll offer you some hope.
You are on the very bottom rung of diagnosis >47.
There was a poster here earlier in the week who was at 54 and their doc gave them 3 months to turn it around before a formal diagnosis.
Your weight gain is simply down to excessive carbs in your diet, your body has been forced to produce large amounts of insulin to keep your glucose levels down.
This hyper insulin causes weight gain which causes insulin resistance.
It's a viscous cycle which you now have the opportunity to break, it's completely up to you.
Pills in your situation would be counter productive as they wouldn't treat the root cause, your dependence on these drugs would increase over time and your condition will worsen.
Read up on low carb, get a meter and stay on the forum for advice.
Good luck.