UserDaoImpl code is changed to use JdbcTemplate.

Reference:
[1] http://www.tutorialspoint.com/spring/spring_jdbc_example.htm