finish JDBC block