Reorganize tree order and depth fields, and add profile key field to all content types