Improvement: load LogDatabase only when needed
Merge pull request #1383 from emanwebdev/patch-29

[Improvement] load LogDatabase only when needed