Fix PostgreSQL support.

Generate PostgreSQL compatible SQL if syntax is set to PostgreSQL.

Fixes https://github.com/AnalyseSI/AnalyseSI/issues/4 and bug #494071 (https://bugs.launchpad.net/analysesi/+bug/494071)