Cleanup of db retry code. Less error logging.