changing from mysql to pdo