Logger context should be set before initializing the DB.

PLAT-20 #