update DB for groups