how to make the enquiry button clickable and connect with the database?

here is the code:
export function button59_click ( event ) {
}
$w ( ‘#ifullname’ ). value = null
$w ( ‘#icompetent’ ). value = null
$w ( ‘#ilocation’ ). value = null
$w ( ‘#repeater1’ ). data =
$w ( ‘#repeater1’ ). collapse ()

If anyone could assist me with this, I feel very grateful for that - Thank You