Congrats on your birth. As a child psychologist and a dog owner I understand how it may be difficult having both. That said, I am very upset that you gave your dog away.
I'm sorry to be the bad guy here, but if one of your children turned out to have a learning disability or was autistic, would you give them away at ten years old?! Well, you did that to your dog. He/She depended on you, and you turned your back on your dog as soon as it got a bit inconvenient.
Owning a pet is a big responsibility. It is like having kids. And too many people give their pets away too easily.
You did not have to give your dog away. Why didnt you just call a trainer? Why didnt you post on Yedda to find out how to get her to stop peeing in the house? (By the way, did you ever think that it could be because of her old age?!) Or why didnt you get her diapers? There are ways to stop the barking, too. A citronella collar works great with dogs when they bark when you are away. It sprays them when they bark, and the noise, smell, and sensation stop them from barking anymore. It is very effective, we used it on my lab.
I know a family that has 2 large dogs, 3 cats, and 2 toddlers and they live in a 5th floor walk up apartment in NYC. (No, they arent rich at all.) And, you know what? They are very happy, they take great care of all their animals, and their children are very sweet, happy, and well adjusted.
I think you should get your dog back. Im sure he/she is very depressed because you abandoned them. But make sure, if you do decided to get your dog back, that you dont give her up again in a week or two. That is emotional torture to a dog, and can seriously emotionally mess him/her up.
Again, sorry to be the bad guy, but I think your decision was wrong. And it sounds to me, from your post, that you also know that it was the wrong thing to do. You should get your dog back because you love him/her and she should be allowed to live out her old age with her family.