Boolean support

Only tested with PostgreSQL
Merge pull request #27 from ottob/bool_support

Boolean support