Populate db with historical data