I agree with hiring a trainer. Almost all dogs can be trained. Some are challenging, yes, but unless they have some sort of mental defect, they are trainable.
A friend of mine is an excellent dog trainer with Sit Means Sit in Fort Worth. His name is Eli Vega (pronounced like the name Elise, but without the -se). You can look him up on Facebook, too, if you're on it. His Facebook page is under Sit Means Sit Fort Worth.
His email address is ____@____.com
Anyway, if your daughter is in love with this dog, you need to make a concerted effort, with a quality professional trainer, before you get rid of him. If he's still peeing and pooping everywhere after that, then I agree, the health and safety of the family, especially the baby, needs to come first.
Good luck! And call Eli! He's fabulous! :-)