DEFECTS FIXED: theme ajax get country info, purchase log id, visitor meta ajax hook
* Theme ajax was using an outdated method to get country id and name
* Attribute name used to get purchase log on checkout was missing quotes
* Hook that updates shipping visitor meta when billing visitor meta is udpated was only firing when ajax requests were being processed. Moved code so that it would always fire.
DEFECT FIXED: Saving checkout data to database
$wpdb global was missing
conversion when array returned from customer meta instead of string was not being done correctly