Miscarriage?

I think I was two weeks Pregnant and had a miscarriage from a UTI. What's confusing it that I took a morning after pill right before I was fertile... then went back at it a few days later. I was showing signs/symptoms of pregnancy and a UTI at the same time. After 2-3 weeks, there was a lot of blood on the day I was about to take a pregnancy test. An urge to shit as well. Found a large lump came out that wasn't the color of a normal blood clot. Haven't stopped bleeding since then. I think I Need help in understand what went on. I'll reply to any comments.