Add next/previous IDs to Pages table, and self-joining foreign keys