Support access to postgres in read-only mode

For failover.  This is basically just catching the exception and turning
it into a SODA-style error.