This is the code I have. Everything works aside from the actual query. Any value entered in the input will show group8 and subtract 15 on total.
export function button64_click(event, $w) {
wixData.query('DiscountCodes')
// Query the collection for any items whose "Name" field contains
// the value the user entered in the input element
.contains('backToschool', $w('#input3').value)
.find() // Run the query
.then(res => {
// Set the table data to be the results of the query
$w('#group8').show();
total = 15;
calc()
} );
}