Expose snapshot_session for custom snapshot storage.

This is code from @joeyAghion, we now store snapshot data in a separate database. In this PR we expose `snapshot_session` that lets you choose which session (database) to read from.