Added support for post-db-connect callback. Fixes session issues in many circumstances.
Merge pull request #19 from ztratar/master

Added support for post-db-connect callback.