script to migrate sql 2 postgres
fixing view
script to migrate db to postgres