db structure update: contact_id->id | group_id->id