PDO

migrating mysql extension to PDO