dbpath added to the session struct and xml parsing