implement basic pdo