VE-1577 Update preference migration script with end date param
VE-1577 Code review feedback
VE-1577 Use slave DB
Merge pull request #4911 from Wikia/VE-1577

VE-1577 Update preference migration script with end date param