matched up the mysql queries to the top status box as they showed different results
Merge pull request #5 from laf/issue-47

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