add casedb instance when updating parent
simplify xpath for updating parent