functioning tester.php that connects to postgresql