changed category table column parent to parent_id