Fix issue #246
Merge pull request #247 from Atheros1/master

 Fix issue #246
add import sys to class_sqlThread.py
Merge pull request #249 from Atheros1/master

add import sys to class_sqlThread.py
Merge remote-tracking branch 'upstream/master' into splitting_bitmessagemain