Working on goals editing
Migration for triggers, views and functions in Postgres