Query db for variables

The previous code defines variables that allow you to report on the prior 24 hours worth of statistics in your database. To automate the running of the variables.sql script, use the  shell script report.sh