matched up the mysql queries to the top status box

matched up the mysql queries to the top status box as they showed different results.

This is for issue #47 on librenms/librenms