enabled logging in via db