Improved query handling
Improved session handling and the interconnect between the session manager and user manager