when device id changed, update all related record