updated the insert script (v2) + other attendance type fixes