Fix BooleanHandler for PostgreSQL