Fix following FindBugs analysis and Upgrade

Adding capacity to change Log level dynamically
Fix DbSession
Fix Db Logging