add delete all and insert and sql exception test case