Switching to an external DB

Instead of uploading .csv files to my website I am connecting my WIX site to an external DB. I have everything working on the site except the search functionality. I have three search boxes with a table below displaying the results. With the code below is there anything that needs to change if the IDs (imput1, dataset1, parcelId, etc…) remain the same with the new database being at a different path?

import wixData from ‘wix-data’;
$w.onReady ( function () {
//TODO: write your page related code here…
}) ;
export function input1_keyPress(event, $w) {
let searchValue = $w(“#input1”).value;
$w(“#dataset1”).setFilter(wixData.filter().contains(‘parcelId’, searchValue));
}
$w.onReady ( function () {
//TODO: write your page related code here…
}) ;
export function input2_keyPress(event, $w) {
let searchValue = $w(“#input2”).value;
$w(“#dataset1”).setFilter(wixData.filter().contains(‘owner’, searchValue));
}
$w.onReady ( function () {
//TODO: write your page related code here…
}) ;
export function input2_keyPress_1(event, $w) {
let searchValue = $w(“#input2”).value;
$w(“#dataset1”).setFilter(wixData.filter().contains(‘owner’, searchValue));
}
export function input3_keyPress(event, $w) {
let searchValue = $w(“#input3”).value;
$w(“#dataset1”).setFilter(wixData.filter().contains(‘propertyAddress’, searchValue));
}

https://support.wix.com/en/article/corvid-working-with-external-database-collections

Also, you should only have the one onReady page function in your code and not multiples.