Remove wrong data from database

Hi,
I would like to remove some wrong data from a modbus sensor.
The sensor is configured like this :

  - name: "Pelletverbrauch"
    unique_id: "PelletID"
    address: 8233
    scan_interval: 60
    slave: 1
    data_type: uint32
    input_type: input
    unit_of_measurement: kg
    state_class: measurement

All is running fine, but 2 times I got zeros from the pellet oven. Here :

I use SQLiteStudio to change the values. I also found the ids in the statistics_meta and filtered for this ID in the statictics. Now if I search for the 0s and change them, the graph still shows the two zeros.
Or are the values not safed in the “statistics” data ?
If I search in the states_meta for the id and then change this ids in the states, still the two zeros in the graph.
I “core stop” and copy the new database in and then “core start”. Still no changes, the zeros are still in the graphs.
What do I do wrong ? Or are the values somewhere else and not in “statistics” and “states” tables ?

If nobody can help, is there a document about the database structure used in ha ?

Nobody can help ? Or is it hard to understand, what i want to do ? I can give more details, if needed.