def new_playername(self, arg):
        if arg.isalpha():
            row = self.world.db.select("dbid from player where name=?", [arg.lower()])
            if row:
                self.player.update_output('That playername is already taken.')
                self.player.update_output('Please choose a playername. It should be a single word, using only letters.')
            else:
                #verify here!
                self.save['name'] = arg.lower()
                self.player.update_output('Please choose a password: ' + CONCEAL)
                self.password = None
                self.newbie = True
                self.next_state = self.create_password
        else:
            self.player.update_output("Invalid name. Names should be a single word, using only letters.\r\n" +\
            "Choose a name: ", False)
Insert the document in the database (as a new document).
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/modes/init_mode.py/InitMode.new_playername--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/model/document.py/Document.insert