UTI or STD?

I recently had sex and two days later it became uncomfortable to pee.

There’s no burning and no pain as I pee, but once I’m about done and emptying out my bladder there’s a sharp kind of pain. I’m also having some back pains. I was peeing more frequently, but I haven’t been drinking as much water. Any idea??