add threading,logging,mysql
Merge remote-tracking branch 'origin/master'