Michele,
Version RC3 has new RecordBrowser (RB2) which stores data in tables in standard orientation. Because of it you can just run regular INSERT SQL to populate table contact_data_1 and company_data_1.
The only fields you should set to fixed values are:
created_on (should be the date and time of data import , for example 2008-09-15 15:58:19), and
created_by = should match id of a user from user_login table, for example id=1, login=admin then created_by = 1
If you want to create a function for import here is an example:
<?php
define('CID',false); //i know that i won't access $_SESSION['client']
require_once('../include.php');
ModuleManager::load_modules();
set_time_limit(0);
// Here 1 contact record will be inserted
Utils_RecordBrowserCommon::new_record('contact',
array('first_name'=>'Jan',
'last_name'=>'Kowalski',
'address_1'=>'123 Main Street',
'country'=>'US',
'zone'=>'PA',
'city'=>'Philadelphia',
'postal_code'=>'19000',
'work_phone'=>'610-123-4567',
'company_name'=>array('1'),
'permission'=>'0',
'email'=>'user@gmail.com',
'group'=>array('office','field')
));
}
?>
We are updating the import module for new version of RB and will make it available soon.