Fix migrator for postgres