Migration Updated

last migration to update the Database was refactored to solve data loss
problem.

next step cover with tests new Hierarchy model