split the group management function controller,
add the database for grouping