def METHOD_NAME(self, sql, parameters=None):
    try:
        try:
            self.parent.cursor.METHOD_NAME(sql, parameters or [])
        except UnicodeError:
            self.parent.cursor.METHOD_NAME(sql, cleanReplaceUnicode(parameters or []))
    except sqlite3.OperationalError as ex:
        errMsg = "problem occurred ('%s') while accessing sqlite database " % getSafeExString(ex, UNICODE_ENCODING)
        errMsg += "located at '%s'. Please make sure that " % self.parent.dbpath
        errMsg += "it's not used by some other program"
        raise SqlmapGenericException(errMsg)