How can I retrieve the ID of the last record in my table?