As mentionted in T613, the ResulsDB is painfully slow when showing results,
because we call q.count() for each query to be able to compute total number
of results meeting the query criteria.
This is unnecessary, thus removing it.
As we also sort all the data by submit_time, it is worth having the column
indexed