Added base class for sql and zodb applications, making it easier to instanciate