output to /var/www/Log.db
plot now pulls from sql database not csv