changes to integrate migration to postgres