Refactoring: Make to #post-page to take whole page objects
Implement functions about page-relation
Add indices on the columns of the page_relation table