configuring groups in sql tables