perf improve the loading of the db
fix a missing log import