Export DBIdToPath, inject workdir
Add Hichame's DB check to self-diagnostics, persistent state db
Add self-diagnostics DB checks

checksums, classes, observations, file stats, locks, performance