Boolean type support

Only tested with PostgreSQL