I only spent a few minutes investigating, but I don't think these work.  I believe that the `sudo_psql_and_log` method will only fail if the psql command returns a non-zero exit code, and I believe that while your statements would return 0 rows, they would still be valid statements, would execute successfully, and thus the exit code would be zero... so these wouldn't actually catch the failure.  Feel free to tell me that I am wrong about that if you investigate further and find that not to be the case.  :)

We should probably add some documentation to the sudo_psql_and_log method to clarify its intended purpose.  Then, to fix this problem, you have a few options:

1. Change this to a regular "sudo_and_log" call that wires together some kind of `|grep` or `|wc` to verify that your query returns results, or
2. Create a new helper method called `sudo_psql_and_expect_results` (or something slightly less horrible, but you get the point) that encapsulates this concept--which I think would be generally useful.