updated sample usage

Still had the old script name in there.
moved migration logic into callable function

This will make the script easier to call from other scripts (e.g. calling from a script that is reading in a list of usernames from a csv).