How many simultaneous users on your database? If this is standalone then you could query that login table at login. If it is 7th login, then delete the first 6 and make this record 1.
If this is multiuser, then you might consider the login table to be in the front end where each user gets...