Adds ability to specify additional sql condition
Merge pull request #3 from nsanden/master

Adds ability to specify additional sql condition