Fixed SQL queries for the top status box on homepage
Merge pull request #22 from laf/issue-87

Fixed SQL queries for the top status box on homepage