Update migration scripts to changed db structure