adds total_matches methods
and related (index view and db column)
updates home page links