The record will be queried by using username field as the
primary key to the parent table.
For each user, aaa_uid identifies the session as there can
be multiple sessions with same username.
For example, same username could login from telnet and ssh. We can have
two different sessions with two unique ids for the same username.