Implementing a JDBC-based repository