Changed PDO call to use environment variables