thanks for query,
I think it has no relation with sugary food,pain may be due to,
1,you might have chronic appendicitis
3,some infection in genito urinary tract
consult surgeon and seek his advice.
go for blood sugar.
ok and bye.