Only show debugging data on db failure if we're in debug mode.