DB session refactoring.

unit-tests

One thread - one session.
One thread - one engine.
No db session forwarding anymore.