add index
add a column logging_type