You can use input components like TextInput and TextEdit to get input in qml. After that you have two ways to store them in database: 1) directing from qml to database, 2) send data to Qt (Qt-Qml binding) then store them in database by Qt. I would prefer second way if have C++ classes beside qml in application
Bookmarks