add primary key to some tables