improved Hibernate configuration.