resolve db exception