Fixed Datamigration

Now it can be run even if no data needs to be migrated