A pet dog may have solved a notorious 160-year-old murder - after digging up a bottle of poison buried in the garden.