Changed hardcoded SQL to query object
Merge pull request #1 from pe7er/patch-1

Changed hardcoded SQL to query object
much better... thx @Pe7er