Adding database logger