def _create_id(self):
    """Returns a freshly created DB-wide unique ID."""
    cursor = self._db.cursor()
    cursor.execute('INSERT INTO Ids DEFAULT VALUES')
    return cursor.lastrowid
Returns a freshly created DB-wide unique ID.