fix db migration and seed.