Try to understand what a database really is.
A database is an organized collection of data. The data are typically organized to model aspects of reality in a way that supports processes requiring information. For example, modelling the availability of rooms in hotels in a way that supports finding a hotel with vacancies.
(wikipedia)
It can be a directory database on a pc /server with several files or a filebased database like Firebird, MS SQL, SQLBase. A application above will managed all your requirements to the database and back.
Dbase is nothing more than a file with data (what howardpc says) and called a table.
i still do not undertand how i can modify the database itself directly from the code
But the demo is writing directly to the table.
What you trying to do is fill a Tedit with a username and check this.
TDBF (and other datasetcomponents) has a lot of properties and events. If you put in code dbf1. in the designer you get a lot of properties in a display. You can play with them.
If you want to search in the table use .locate. If you want to see what .locate has found use .fieldbyname(<fieldname>).AsString (for strings).
This
site will give you an example of locate. There are a lot of examples on the intetrnet. Mostly Delphi, but there are 100% compatible with Lazarus/FPC