start adding the session factory and everything in core