Added implementation of DaoImpl and fixed configuration files of hibernate.