Add some diagnostics on db initialization