simple database connection code using PDO