Hibernate reading & writing seems to work now