Added a central Session to the db module. Also made a custom base class for use in the models.