Connection creation added to createStatement method for Pgsql.php.