pub fn sql_insert_or_update(table: &str, columns: &[Column], w: &mut impl Write)