This example does much more than that. There should be an extensive explanation of what this example does. Why are the LBs needed? How does this code communicate directly with the database? What drivers are needed by this code? The letters JDBC should be used somewhere. ;)