Attempted fix for PDO pgsql boolean values bug

Relates #1115

I overridden `insert`, `update` and `buildCondition` to cast boolean types to integer.

p.s. indentation made with the Yii2 PHPStorm code-style placed on github by @samdark, thus a few line changes.