set db logger when requiring db