Fix stats, topfails pages issue and serves only those tests which  whose results are  missing in db

This Pull addresses three issues

* Stats Page issue is now fixed
* Topfail Page issue is now fixed

Clients are not served tests whose results are in db but  those results are not filtered by current commit since results don't have commits ? should I add commit to results schema?

Next Steps - 

* Check results for current commit only
* Check for last scores for tests whose results are not in db