this is a copy of an Email I’ve sent today to NETMAKE
============================================================
The entire security database structure is wrongly designed
and that causes endless problems.
It should be redesigned and recreated. Main problem are the Primary Keys. This structure has not been changed for 20 years !
The main problem is that you do not use Numerical fields to keep the index and primary keys. This not only slows down data processing, but also causes key string length issues (like the one we’re dealing with). When I see this design, I really want to scream. 99% of forum users made the same statements about this BAD DESIGN 
Each user should have an ID field (LONG Int, 11) and Primary Key base on this field. Then everything would be easier. The idea of using STRINGS for primary keys is only OK for small size tables and places where performance is unimportant. Tables relationships should be built on the principle of primary key, always using numeric values. I have learned this 40 years ago and this is like knowing what is voltage for the electrician.
I really do not understand how can you keep this bad structure for so many years and waste time on problems it is causing.
PLEASE SHARE THIS WITH YOUR MANAGERS