Fix #15

Replace a $dbh->query by a $dbh->prepare when ones has then to bind some variables.
The same bug could be in other places. Check it out!