Added TYPE as a collumn name. Updated view visits