Created group affiliation table and fixed its controller