basic fixes for ext/pdo
basic fixes to ext/pdo_sqlite
basic fixes to ext/pdo_pgsql