hc: fix hc association with instance in db