improve sql eval
Merge pull request #315 from cutedemons/master

improve sql eval