[AERGO-545] Adding the work I've done on "CreateAttributeTriggers.js"
Merge branch 'terradatum.postgresql_crt' of https://github.com/terradatum/anchor into terradatum.postgresql_crt
[AERGO-553] - Converted SQL to PostgresSQL using the work I did in CreateAttributeTriggers.js as a template.
[AERGO-545] - I missed some of the "@" in CreateAttributeTriggers.js and had to remove them.
Merge branch 'terradatum.postgresql_crt' of https://github.com/terradatum/anchor into terradatum.postgresql_crt