Changed hasParent to parent which is now being stored and fetched - Instead of getting the parent from the parent id we now get it directly