Add groups, memberships, to database