def METHOD_NAME(self, sql, params=()):
    starttime = time.time()
    try:
        return self.cursor.METHOD_NAME(sql, params)
    finally:
        execution_time = time.time() - starttime
        raw_sql = self.db.ops.last_executed_query(
            self.cursor, sql, params
        )
        if sqlparse:
            print(sqlparse.format(raw_sql, reindent=True))
        else:
            print(raw_sql)
        print()
        print(
            'Execution time: %.6fs [Database: %s]'
            % (execution_time, self.db.alias)
        )
        print()