Updated dao classes to use hibernate, not yet finished.