Fix Database Session Leak

Fixed Database Sessions getting reused
Requires some changes to Poco Library will upload in abit