Merge pull request #119 from xue0chao/master

new SQL VM and add scrolling
Refactored some codes