This is the R script that reads in the data and it is called by the four scripts that produce the plots. Closed the sql connection to rid of warnings.