Hello again Manuel,
If you want to select more than one item, it really depends on the design. But you may use a Forge component for that. There are several components that allow a Multi Select functionality, you may pick one that suits your needs.
About writing in the Database, when you create an Entity, it has several default actions associated with it.
In this example, both CreateImage and CreateOrUpdateImage actions allow you to create an Image record in the database. You may also use UpdateImage if you want to update a specific record.
As I can see, you are in the very first steps in the OutSystems world, so you might want to take a look at the Documentation :)
I'm pretty sure it will help you a lot. For Traditional Web Apps, there is this course that covers a lot of topics:
https://www.outsystems.com/learn/courses/114/developing-web-apps-outsystems-11/?IsFromFeedbackEmail=False
Hope that this helps you!
Kind regards,
Rui Barradas