Creating a custom form with two datasets

So I am trying to make a register that submits data into a database. The information required must use the members name and email without them adding it into the form. I know that you can reference the owner_ID but how do I make the form use this referenced data to submit into another database.

This is the database that must show the Owner Name and email.


This is the database I am trying to use as reference.


When the owner submits the form it must send them a automated email response.

This is what the final database should look like with all the required fields.

Please help.

  1. First get data of the current logged-in user.
    https://www.wix.com/velo/reference/wix-users/currentuser
  2. It would perhaps be better if you would use queries instead of datasets.
    https://www.wix.com/velo/reference/wix-data/query
  3. How to write data back into DB?
    using-query: https://www.wix.com/velo/reference/wix-data/save
    using datasets: https://www.wix.com/velo/reference/wix-dataset/dataset/setfieldvalue