fix issue with postgreSQL and batch inserting boolean values

fixes #4654