The macro connects to a SQL database and populates the spreadsheet. This data is then used to produce a chart.