Fix hibernate config