Save item groups in database