Thiru & Sowmya | #908 | Modified the migration script for performance