convert dao to jdbcTemplate