fix bug where group code was not being saved to db