Sec groups qos and aiclib fix

This changes the DB.