 +su -l -c psql postgres <<EOF
  \c pscheduler
  SELECT
-     date_trunc('hour', added) AS hour,
-@@ -113,7 +113,7 @@
+ date_trunc('hour', added) AS hour,
+@@ -134,7 +134,7 @@
  
  section "New Runs by Hour Added"
  

+su -l -c psql postgres <<EOF
 \c pscheduler
 SELECT
     date_trunc('hour', added) AS hour,
@@ -128,7 +128,7 @@
 
 section "Run States by Hour"
 

+su -l -c psql postgres <<EOF
 \c pscheduler
 SELECT
 run_state.enum AS state,
@@ -208,7 +208,7 @@
 fi
 
 section "HTTPD Error Log (Last ${LOG_LIMIT} Lines)"
