change db query syntax
Merge pull request #32 from BaBuDe/master

(bug) change db query syntax