Remove useless 'case_record' variable in database.