Completed the group members gathering method in db