fix db exception mode