Add regions, pooling enum and more comments
Add dbdiag command and Database diagnostics

Also fix NPE bug