Remove that global DBSession.

Its a bad habit that we picked up from TG2.
Merge pull request #3 from civx/feature/no-more-global-session

Remove that global DBSession.