Changed patent.application to have pkey of applicationid_patentid