Added some pages and some database queries.