Fixed bugs in the SQL/MYSQL code, now remote logs in the monitor.