I think you mix it up.
What is a database?
A database is = Collection and Collection is = database.
You store all your items inside your database in different database-fields (rows and columns) like on an microsoft’s excel-sheet.
What is a -->DATASET<-- ???
A dataset is some kind of a connection (wire) between the databse and a displaying element, like —> REPEATER, TABLE, GALLERY, HTML-COMPONENT, TEXT-BOX and so on…
In your code you don’t have any codeline, which is related to a dataset.
- Copy and paste my provided code onto your page.
- Publish your website.
- Run the code, by logging in onto your website and opening the related page, where you placed the code.
- Press F12 on your keyboard, while you are in your Webbrowser (google-chrome).
- Navigate to —> CONSOLE !
- Take a look onto the given results → you will understand the rest.