Nucleic acid extraction for environmental protection