Added auto increment to in_group. Fixed syntax