Pain and blood glucose levels

So this week my precious fetus dislocated my ribs. After 12 hours of charlie horse like spasms I cried through an OB appointment. I can't remember the last time physical pain made me cry. It's better with a muscle relaxer. My sugar was pegged low 200s and wouldn't move despite 8 units. It finally went down after the meds kicked in. So I guess I was wondering if it was pain the did it? And how the hell is labor going to work!?