replaced mysql_ with PDO