con = sl.connect('somedb.db')
cursor = con.cursor()
cursor.execute("delete from tmp_rev;")
con.commit()
cursor.executemany("insert into tmp_rev select distinct b.id, b.rnm, r.month_r from rev r inner join (select min(id) as id, rnm from form4 group by rnm) b on r.kkt = b.rnm where rnm !='';")
con.commit()
print("обновление")
sql.execute(f'ALTER TABLE {table_name} ADD {column_name} {datatype}')