Use transactions.
Fill Addresses table.
Add error handling if the arrays change at all.
Phone Ref ID is too big.
Join table for addresses,
Join table for phone numbers.
Join table for email addresses.
Move to 2 space indentation as per Drupal coding standards.
Drupal coder review fixes.