Created script to pull data from SQL.