SKNS-4955 | Improve code modularization for db encapsulation.
SKNS-4955 | Session store is a real store: one instance can manage multiple sessions.
SKNS-4955 | clean database connection at the end of each request.