Got person dup and contact dup logic working with temp tables