An Algorithm and a Database: two Conceptual Tools to Control the Diffusion of Animal Diseases