Adding SQL code for post "Postgres - Add/Create object if it doesn't already exist".