Dev Solution for Postgres Db upgrade using transactions