my dog is potty trained, when he has to go he scratches the door or comes up to me and whines. On two different occasions he has had accidents and i took him to the vet the second time. because it was just a lot! and the doc told me he had an upset stomach…maybe something he ate or just wasnt feeling good…maybe thats whats wrong??