Postgres Add Constraint If Exists Php