Changed the insertUpdate function to address problems found with database queries stepping on one another.  Also fixed a bug that caused phone number to be undefined.