setup database and rest settings. created test.php to respond with data from testdb