Working hibernate (finally!)