Refine the sessionDB
Signed-off-by: Zheng Chai <zheng.chai@citrix.com>