getting hibernate working