Setup database connection, added initial dummy functions, added debugging code to sample.php`