close sessions in parser and server code
change hibernate config