migrating to the pg