[Improvement] load LogDatabase only when needed