Fixed SQL queries for the top status box on homepage
Merge branch 'issue-87' of github.com:laf/librenms into laf-issue-87
More complete fix for laf:issue-87

 - Align all columns
 - Move all of the common parts of each query to the front so differences can be seen easily
 - Fix mixup of deleted vs. ignored
 - Ensure deleted & ignored are checked correctly in each query
Merge pull request #96 from libertysys/laf-issue-87

More complete fix for laf:issue-87