dyngroup : fix on static group creation

- ORM-friendly refactoring on insertion
- pertinent assignement of ids