insert into viewer table