Hello Cocosurviving: One thing that sometimes happens with dogs, particularly dogs from puppy mills, or other similar sorts of situations, is that they are kept in cages or similar enclosures where they are forced to pee & poop. Dogs have a natural instinct to not soil their "beds". This is why they can be typically be trained not to eliminate in our homes. However, when they are forced to potty in a cage, or other similar enclosure, it can destroy that natural instinct. And, once it's gone, it can be extremely difficult to reestablish it. So, with the next dog you get, one thing to make sure of is that it has not been kept in a cage, or similar enclosure.
Also, before you get another dog, you MUST get rid of ALL traces of this dog's pee odor. Otherwise, the new dog will smell it & start peeing in those spots as well. Dogs' ability to smell is several thousand times as sensitive as ours is. The only product I am aware of that reliably cleans & eliminates pet pee odors is a product called: "Nature's Miracle". You should be able to purchase it at a well stocked pet shop. A professional cleaning service may also be able to successfully clean your carpets & furniture. I'm not sure about this. But, personally, based on my experience, I'd use the Nature's Miracle first, & then have the cleaning service show up. Good luck...