Database search and autofill form..

You will need to use Wix Data Query to get the item string from the Database which is tied to the input ID and then populate the fields with the items as you want.

Then you need to use Wix Data Insert to insert the data in the 2nd Database.