One of the goals of the Human Genome Project was to allow researchers to link versions of individual genes (known as alleles) with particular diseases.
Only identical twins share genetic profiles on all 20 alleles, so if you get a perfect match between the DNA you find at the scene and the DNA database profile, you have very strong evidence that the person in the database committed the crime.