just before migration to postgres