This code is just off the top of my head... but it ought to work, or at least get you going along the right track.
PHP Code:
$userfield = $vbulletin->db->query_read("SELECT * FROM user");
for ($i=0; $i<count($userfield);$i++){
$userfield[$i] = mysql_fetch_row($userfield[$i];
(code to add $userfield[$i] to other database.)
}
I doubt that will work as I took just a second to write it up, but the trick is using the "for" statement.
Edit: You could also just use Impex.