separation anxiety
If he pees and poops when you leave him for an hour maybe it was because he had to pee and poop? Take him for a long walk before leaving him alone. That will not only give him a chance to go but exercise is a great cure for separation anxiety. Also, start leaving him for very...