Substituted regular JDBC code with Spring's JdbcTemplate support.