improve sqlwall
Merge pull request #753 from yakolee/master

bugfix for #728