Export Function & Parameter event - no results in table

I created a table (#table1) on my website. two input fields first name (#input1) and last name (#input2) and a search button (#button1) with the searchButton_onclick event. There is a caution mark next to my export function telling me that parameter ‘event’ is never used.

I am querying the Burials database that I have created with the appropriate fields but when I press the search button, I cannot display the the results from Last Name (input2) input field in the table that I have created… Please help. Thank you

CODE:
import wixData from ‘wix-data’;

// For full API documentation, including code examples, visit http://wix.to/94BuAAs

$w.onReady(function () {
//TODO: import wixData from ‘wix-data’;
});

export function searchButton_onClick(event, $w) {
wixData.query(‘Burials’)
.contains(‘last_name’, $w(‘#input2’).value)
.find()
.then(res => {
$w(‘#table1’).rows = res.items;
});
}

My screenshot

Hi,
I recommend refreshing the table after setting the data to the table. Click here to read the documentation.

Best,
Tal.