test insert into db