add parent_id hidden field and database migration