Fix Insert ID on getOrCreate

Fix insert id on `GroupPermissionAccessEntity::getOrCreate()`

- move `$db->Insert_ID()` call to below `Config::save()`
Merge pull request #1141 from mkly/fix_insert_paeg_peid

Fix Insert ID on getOrCreate