Updated webCrawler.py

Fixed some problems of database accessing and updated comments