Revert "Replacing cursor based data migration with data all at once scheme"

This reverts commit fde740c4180feaaedca0f269c40a65b6c90f3b9c.