0 You had written for loop there whenever it is called it will insert data multiple times . make changes in your code write these line
db.tbl_OutBoxes.InsertOnSubmit(tb);
db.SubmitChanges();
after you loop ends . It will insert data only on time .
Initially you had written those lines inside loop , loop keeps on inserting data when the condition is true in If it will insert data only Once