I certainly agree with the idea of prevention, certainly. And there are plenty of ways to do that. (And I have gone those routes, multiple times.)
But IME, when things have gotten to the point where you have kidney pain then things are beyond the point where you can DIY, so to speak. Every time I've gotten to that point it has been accompanied by high fever, chills, body aches and (in one instance) a frightening degree of incoherence. Just sayin'.
If it truly is a kidney stone...I'd suggest going to a doctor if only to get pain meds to deal with it. Cuz...wow. Although if it's severe enough and there is actual blockage...again, a doctor can probably deal with things (at that point) better than anything else.
Also, given internet wossname, I'm not comfortable giving out medical advice. If someone is truly worried about a health issue, I suggest going to someone who is trained to deal with it.