Fixes #4203: adapt the writing of reports in the database
Fixes #4204: change dirrective editor for meta technique