needs lots more work but for now this talks to mysql
wil rename sql2.pl to sql.pl later. if everything works fine again.
Renamed sql2.pl to sql.pl