REGISTER or login:
Not knowing what tools are available to you, we can only guess.
If it is a database and you can use SQL. That is the easiest.
If that does not work for you , please give us more information as to the software you have and how these records are stored.