fixed migration and seeding bugs