how do i add records and delete them via code?