refactor JDBC