added MySQL stuff to threaded stock scraper