Improve performance for OverviewPage.
To determine which icons shall be enabled, we don't have to fully
classify all categories. Instead, I introduced an option to
Database::classify that allows partial counts, only checking for at
least two mapped categories.