def METHOD_NAME(self, word_token, postcode):
    with self.conn.cursor() as cur:
        cur.execute("""INSERT INTO word (word_token, type, word)
                          VALUES (%s, 'P', %s)
                    """, (word_token, postcode))
    self.conn.commit()