def METHOD_NAME(self, word_token, word, cls, typ, oper):
    with self.conn.cursor() as cur:
        cur.execute("""INSERT INTO word (word_token, type, word, info)
                          VALUES (%s, 'S', %s,
                                  json_build_object('class', %s,
                                                    'type', %s,
                                                    'op', %s))
                    """, (word_token, word, cls, typ, oper))
    self.conn.commit()