migrate user func keys into the new schema
func keys start at 1, not 0
rename variable to avoid name collisions
Merge branch '4903_migrate_func_keys'