Fixed bugs with search, changed max_matches to number of published restaurants in database