added writeSQL to save CREST market data
added crash/recovery function to fetch_crest.py