handled empty db error