changed MySQL access to PDO