def update_player_username(conn, player_update):
        """
        Update player username in the player table
        :param conn:
        :param player_update (username, player_id):
        :return: player id
        """
        sql = ''' UPDATE player
                  SET username = ?
                  WHERE id = ?'''
        cur = conn.cursor()
        cur.execute(sql, player_update)
        conn.commit()
        conn.close()
        return cur.lastrowid