Field cid -> pid. Create indexes to speed up import. [ci skip]