moved pages.php to the database (#13)