fix hibernate connection issue