changed repository ligic from JdbcTemplate to NamedParameterJdbcTemplate