Corrected some sql issues within the update hook to update current patents.  #2807