Hi!
Records are by default unordered. If you want the "last" record, then you must have some sort of criteria (field) to determine what is last. To assist, we'll also need that.
For instance your saved timestamps for lastedited, added, or some other means of resolving what's the "last" record.
Roy-Vidar