def update(self, args):
        "Update user data"
        user = User.by_id(args.userid)
        if 'user' in args:
            user.userid = args.user
            for job in user.jobs:
                job.owner = args.user
                JobMeta.add(job)
        if 'name' in args:
            user.displayname = args.name
        if 'email' in args:
            user.email = args.email
        if 'password' in args:
            user.password = args.password
        User.add(user)
        commit()