Doh I found a bug.

When you open the dialog "database" ( /dialog -m database database ) and for example you fill in 4 texts. They appear and when you load the dialog again they appear at the same order. But when you select for example the last one or the 3rd one or whatever and press "del" it deletes it but when you reopen the diaolg you can see that it actually deleted the first line, not the one you selected,