Add Sessions directly, remove the bdb helper.

Add tests until I recreate a user subscript issue seen on beta site.
Fix that issue.

Remove some commented out stuff.