fixed sql command in scraper