added pdo with classes