edited acces to db of migration