Fix sql queries variables replacement.
Merge pull request #6 from ismaeil/master

Fix SQL queries returning nothing.