Connecting items with the correct database

Hello, I am new and I am suffering with some difficulties. I would like to connect a text in the database and the image with the database, where am I wrong?


THE CODE

import wixData from ‘wix-data’;

$w.onReady( async () => {

let title = $w(‘#titulo’).text
if (title === “Abaddon”); {
$w(‘#repeater1’).data = await getItemsFromDB1();

}  

});

export function repeater1_itemReady($item, itemData, index) {
$item(‘#habilidadenome’).text = itemData.habilidade;
$item(‘#hicon’).src = itemData.icone;

}

async function getItemsFromDB1() {
let title = $w(‘#titulo’)
if (title === “Abaddon”); {
return wixData.query(“H-Abaddon”)
.find()
.then((results) => {
return results.items;
})
}

}

$w.onReady( async () => {

let title = $w(‘#titulo’)
if (title === “Abaddon”); {
$w(‘#repeater1’).data = await getItemsFromDB1();

}  

});

It is the essential step for me to continue the project!

Help!
O/

(Translated by Google) sorry.
i Don’t speak very well English