Added parent id to tasks - going to try embedding tasks within each other instead
Can't remember last time I worked on this