Use JdbcTemplate instead of deprecated SimpleJdbcTemplate.
Replaced deprecations. SimpleJdbcTemplate and queryForInt.