Fixed bug in sql lookup
Merge branch 'master' of github.com:spmfilter/spmfilter