Welcome to HCM
You are diabetic and pregnant 28 weeks,it seems that you may be having Urinary Tract Infection
and if there is any cut or ulcer which is not healing may be you also have a fungal infection
and ketone should not come in urine as it comes in high blood sugar or starvation
A infection can also derrange your blood sugar so go to your Gynecologist for check up and urine R&M alon with Urine culture.
Proper antibiotics systemic and local hygine along with local application of antifungal and antibiotics as prescribed by your doctor will heal this in few days to week time,just keep the area dry.
Keep track of blood sugar level an dtak eadequate dose of insulin
For hemorrhoids please avoid constipation
,take water and fibre in sufficient quantity,