delete all rows in Db, fix error attributes