Changed function delete_record() to accept a variable number of records to delete