def update_history_notes(entry_id, text):
    sql = "UPDATE history SET notes = %s WHERE id = %s"
    val = (text, entry_id)
    MYCURSOR.execute(sql, val)
    MYDB.commit()
def activate(author):
    sql = "UPDATE accounts SET active = TRUE WHERE username = %s"
    val = (str(author), )
    MYCURSOR.execute(sql, val)
    MYDB.commit()