Fix PG schema triggers again and Releases.php for PG compatibility (Stage6 remains)