'Given a cursor object that has just performed an INSERT statement into
a table that has an auto-incrementing ID, return the newly created ID.
`pk_name` is the name of the primary-key column.'

def last_insert_id(self, cursor, table_name, pk_name):

    return cursor.lastrowid
