'Note that even if commit is False, the db will still be committed to
because this causes the location of files to change'

def set_title(self, id, title, notify=True, commit=True):

    self.windows_check_if_files_in_use(id)
    if (not self._set_title(id, title)):
        return
    self.set_path(id, index_is_id=True)
    self.dirtied([id], commit=False)
    if commit:
        self.conn.commit()
    if notify:
        self.notify('metadata', [id])
