sql delete operations performance optimizations

bugfix FormDialog
misfire instructions for heureclea-export