Add query to get root node of a persistent unit
Add persistent unit handling for History