backend support for nested comments

added rootId as well as parentId, so we can easily query for comments as
well as having the nesting of parentId