Add mm table for relations to be_groups. Add search form. Add search functions.