Bugfix, fixed fetch bug with ENV database variables

Signed-off-by: Cara Dennis <caracdennis@gmail.com>
[#69485392] User can logout of session

Signed-off-by: Cara Dennis <caracdennis@gmail.com>