WIP DB cursors and JDBC layer.