Welcome to HCM and thanks for your query.
Pain relieved by heating pads is not kidney
related, it i strictly musculo skeletal. Pain killers- oral/ gel form and heating pads are the best treatment.
If persistent, it is wise to take medical advice
Urine in infected for sure and you need antibiotics.
There my be thrombosis
of the veins and only a physical examination could solve the issue.