Raul,
There are a set of tables, prop* and pset* in the database that define fields and templates, their data and relationships.
The propval table holds the assigned values for fields that are assigned to an entry, that is where you will find your 1,2,3 values. If you were to search that table setting the tocid = to the entry id of a folder or document you will see the values assigned to that entry.
I don't know that I would be updating anything directly in the table, but if you are looking to write some kind of report you will probably need to join a few of the prop, pset and other tables. If you are looking for some kind of report, a custom search from the client would probably be your best bet.
Tread lightly ... 
~ Andrew