Changed the replacepubid function to a plpgsql function. This uses the same kind of model as the `combinecontacts` function now.   Probably better (in the end) to use foreign keys, but oh well.
Changed the replacepubid function to a plpgsql function.
This uses the same kind of model as the `combinecontacts` function now.  
Probably better (in the end) to use foreign keys, but oh well.

NeotomaDB/Neotoma_SQL,NeotomaDB/Neotoma_SQL,NeotomaDB/Neotoma_SQL