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: : 160400
SELECT companies.* , sectors.level3des FROM companies, sectors WHERE companies.sector = sectors.level3num and compid = '160400'

The Shares Amount is 18900000

The cusip is 03600T104
NOT OLD

Retrive Rows from Table:
select * from current13Fpositions where cusip = '03600T104'
Number of Rows :21

update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '103.09' where entryId = '39908408'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '239.54' where entryId = '41650446'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '78.15' where entryId = '42054790'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '12.62' where entryId = '42104996'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '12.7' where entryId = '42118338'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '0.07' where entryId = '42119573'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '116.48' where entryId = '42120560'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '2.98' where entryId = '42150773'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '7.94' where entryId = '42184963'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '13.23' where entryId = '42219269'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '5.82' where entryId = '42223819'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '359.63' where entryId = '42226493'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '9.35' where entryId = '42236714'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '23.37' where entryId = '42237875'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '0' where entryId = '42461748'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '0' where entryId = '42685450'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '2.84' where entryId = '46539485'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '0.43' where entryId = '51207663'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '170.48' where entryId = '51244826'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '0.05' where entryId = '51507903'
update current13Fpositions set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' , percentOut = '0' where entryId = '53577949'
End Function

Retrive Rows from Table:
select * from archive13F where cusip = '03600T104'
Number of Rows :4

update archive13F set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' where entryId = '47197800'
update archive13F set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' where entryId = '67780779'
update archive13F set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' where entryId = '51036375'
update archive13F set compid = '160400', sectorNum = '999999', sectorDes = 'N/A', issuerCik = '0001431897' where entryId = '96631936'
End Function
The Script is complete, exiting....