Various fixes, pgsql improvements, cleanup and added support for BOOLEAN TYPE

This PR requires the modifications made to ddbc.