fixed subjects functionality with pdo