added testdata.php, edited pages.php, to test db access.