@mattfred, added some more changes here
 looking at the code, i think it's possible to get more NPEs if we're not checking the email address returned.
 the database has lots of email records w/ null addresses.. the most recent looks to always be populated, but to be on the safe side i added checks for that
add checks to use email or phone from person table if a record is not found in emails or phones