change the insert process logic
add failed record dao, its implementation and test