working on scripts to load historical data into db