I think that you would be able to use this structure and data to make multi level menus with CSS Menu Writer. You would want to set the first level of dynamic menu items to be filtered on the parent id = 0 and set the key to the id field. Then for the sub menu you would add the set and set the filtering to parent_id and nested. I think this setup would get you the menu that you are looking for.