[NEW] Defined packages type ID
[NEW] saving grp_app,grp_dev to database