In order to get your first application started you first need to get an instance of Doctrine_Manager which handles all the sessions (database connections). The second thing to do is to open a new session.