refdb set command does not replace existing lines in the .dat file when updating existing keys:

refdb set db row col data

[]
[col]
row data

...

refdb set db row col data
[]
[col]
row data
row data