Do not use "delete" when close db.