script to migrate sql 2 postgres
fixing view