remove pointers for insert into Database