Added db connection , session management and index page