Create a file containing only the last 5 records and load these into the table
In a program, read the file moving each record into a 5-element array that is shifted down each time a new record is read. When the file reaches the end, the last 5 records will be in the array. INSERT these into the table.
Hope this helps,