finish hibernate upgrade