VE-1389 Script to transition some users to VisualEditor

https://wikia-inc.atlassian.net/browse/VE-1540
Use $dbr stands for "database read", but DB_MASTER is "database write", so $dbw should be used.