fixing migrations for pg