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 - 

- [x] Check results for current commit only
I think the ALLOW FILTERING should no longer be necessary now with the tid being the primary key.

I actually just remembered the reason why we grouped by test initially. The advantage of doing it that way is better compression, as results for a given test are grouped together on disk. Since results between test runs don't tend to change very much this leads to very good compression.

Maybe we could think about an index that would give us access without filtering while preserving the efficient on-disk clustering.