Update database entries older than X seconds

Hello!
How can I update several database entries that have been created in the past 5 seconds, for example?

Thank you!

What’s the use case?

I am allowing the users to upload a CSV into the database. But the problem is that I can’t associate the values they upload in the database with their account.