replace jdbcTemplates with spring-data-jpa