Hibernate session functionality added