David and righteousness