replaced Hibernate with Spring jdbc template