Thanks for the useful link cyberspeed. I test the script and it works fine. You can also try to download this Mambo component that import users (as .csv) you can then synchronize with your Community Builder afterwards.
Found the Joomla! User Import ComponEnt (JUICE) developer.joomla.org/sf/projects/juice
JUICE is an component for Joomla! that allows a site administrator to import users from a CSV text file
This will import the username,password,fullname and email only.
If i want to insert data into other fields created with CB, which tables should i mess around with?