#fix sql bug
Merge pull request #77 from vatseek/sql_bug

#fix sql bug