ported from pdo - pgsql, odbc, mysql, firebirt, dblib