Extract createNodesAndRelations.
Add SQL script to generate pages/page_categories table with translation id.
Add script to get statistic result of the joined categories.