sql = model.Content("KidsToMove").replace('1=1', ' moving = 1')

list = q.QuerySql(sql)

print '<table class="table notwide centered">'
print '<tr><th>Name Moved</th><th>From</th><th>To</th></tr>'
row = '<tr><td>{}</td><td>{}</td><td>{}</td></tr>'

for p in list:
    # comment the next line out if you want to test
    model.MoveToOrg(p.PeopleId, p.FromOrgId, p.ToOrgId)
    print row.format(p.Name, p.FromOrg, p.ToOrg)

print '</table>'