Fix "WHERE" bracketing bug and "UNION ALL"

Pull request fixes the bracketing issues in

* https://github.com/m4dc4p/haskelldb/issues/16
* https://github.com/m4dc4p/haskelldb/issues/14

In general optimizing parenthesis placement is fiddly.  This isn't a general solution but will do for now.