fix pgsql boolean type