finished jdbctemplate implementation