Set up pages and some of the database