implement function to insert   Delete and Clear detail to database( Delete_Clear_detail table)