Minor success!

So there were a few issues here:
1. I was using users instead of agent table names everywhere
2. I am still not 100% sure that the SESSION stuff is set up
   right.
3. It's pretty close.  I'm calling it a night