graphs are appearing in the monitorix web page now.  Seem to be empty,
so can start changing the sql now.

changes were: allowing for a possible div by 0 event,
adding in of the dbname that postgres seems to need to log in