pdo access using repository