Improve performance of overview tab, by using simpler SQL queries, which make better use of indexes.