Refactored YQL code to increase reuse and renamed yqlDecode to yqlExtractResponse.
Massive speedup for bulk insert of historical data by using a single transaction.
Also using sqlite prepared statements for inserts.