Implemented data migration