Update src/core/session.cpp

Backend is not set properly with connection pool
Merge pull request #5 from ghost/patch-1

Backend is not set properly with connection pool