Hi there , first of all have you had her health checked? To make sure there is no underlying condition?
Spaying might help with her behaviour -also you could try and teach her some manners,start from basic obedience
Is the potty problem recent or was she always like this?
If she just stands and barks -again back to basics -leash her and go with her out until she finishes ,make it more structural like take her out every few hours (depends how long she can hold) and reward good behaviour-when she do her business outside
removing water bowl at night might help xxx
I would suggest anti gulping water bowls