Trying to implement better logic for merging new contacts into persistent storage