updated with action java, dao, and hibernate