Included export to csv capabilities to pg2.php