Revised mysql so a single execute per snp set

Revised the mysql so prepare once for each SNP set and execute once
rahter than preparing once overall and executing fo reach SNP.