in what scenarios is `payload[:sql]` `nil`?