takes sql data and inserts it into a time series database