To do multible compids, use the following script:
php /var/www/html_j3sg/institutions/ChangeCompidOfAllInstitutionalAfewCompaniesAtATime.php
Please note that the script mentioned above (ChangeCompidOfAllInstitutionalAfewCompaniesAtATime) only updates the current13FFilingpositions table, no archived tables.

This script actual updates 13F current table as well as both archive13F tables.

We got coming in compid: : 131056
SELECT companies.* , sectors.level3des FROM companies, sectors WHERE companies.sector = sectors.level3num and compid = '131056'

The Shares Amount is 830820000

The cusip is 89579K109
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '89579K109'
Number of Rows :31

update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.14' where entryId = '1224673'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0' where entryId = '1367236'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '2.26' where entryId = '1728334'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.05' where entryId = '1828254'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '1.73' where entryId = '2374745'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.12' where entryId = '2389677'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.08' where entryId = '2828244'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.01' where entryId = '2833494'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.35' where entryId = '3507387'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0' where entryId = '3685849'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '1.18' where entryId = '3734490'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0' where entryId = '3846617'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.58' where entryId = '3918872'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '13.06' where entryId = '4374460'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '12.62' where entryId = '4552000'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.19' where entryId = '6911113'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.34' where entryId = '7306120'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '1.47' where entryId = '7530337'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '13.72' where entryId = '8276626'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0' where entryId = '9169369'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '28.04' where entryId = '9342531'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.14' where entryId = '9757579'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.41' where entryId = '10023571'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0.9' where entryId = '10119566'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '34.77' where entryId = '10142750'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '7.8' where entryId = '10251306'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0' where entryId = '10789304'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0' where entryId = '11153051'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '2.78' where entryId = '11271965'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '1' where entryId = '11450289'
update current13Fpositions set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' , percentOut = '0' where entryId = '12086316'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '89579K109'
Number of Rows :7

update archive13F set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' where entryId = '3688140'
update archive13F set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' where entryId = '4399365'
update archive13F set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' where entryId = '5240663'
update archive13F set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' where entryId = '72447536'
update archive13F set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' where entryId = '73960182'
update archive13F set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' where entryId = '76613225'
update archive13F set compid = '131056', sectorNum = '402003', sectorDes = 'Hospitals', issuerCik = '0001074771' where entryId = '77870781'
End Function
The Script is complete, exiting....