Modified getConnection() to pull dbname from config.php