CAPX-78 | Updated orphans schema to track unpublished nodes and to un-orphan on next update