Gassy bloating and abdominal pain

I had my period about six days ago and since two days ago I've been feeling bloated with sore abdominal pain kinda like how it felt when I had appendicitis (I had my appendix taken out). It hurts more on my right side but sometimes on my left. It's almost like my ovaries are sore. I had sex about a month ago but I don't think I'm pregnant because I had my period since then.. I'm just freaking myself out and am scared because I don't know what's wrong with me. Any ideas?