def _insert(self, request, parameters):
    with self._conn as conn:
        try:
            c = conn.cursor()
            c.execute(request, parameters)
            conn.commit()
            return c.lastrowid
        except sqlite3.Error as ex:
            conn.rollback()
            DAOException(self, ex)
def _insert(self, request, parameters):
    with self._conn as conn:
        try:
            c = conn.cursor()
            c.execute(request, parameters)
            conn.commit()
            return c.lastrowid
        except sqlite3.Error as ex:
            conn.rollback()
            DAOException(self, ex)