PrivateMemberData can't be link to other Database

The code is for registering a user using Wix-user API. This will saved them in the PrivateMemberData.

Then, I think with the information you got from your inputs, you can also send them to some fields in another database.

That said, I won’t recommend you saved password in a public database.

You will then need to create fields with the setFiledValues on your new database https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFieldValues

I am not an expert, but I think you might want to try something like this

Given your new member database is called NewPrivateMemberData, and it has the fields “title”, “name”, “email” and “password”, and with the value you already get in your code :

$w("#NewPrivateMemberData ").setFieldValues( {
  "title":  $w("#firstName").value,
  "name":   $w("#lastName").value,
  "email":   $w("#email").value,
  "password":   $w("#password").value,
   
} );