fix some connection leaks, and an assignment error in testRecoverLobInDatabase() where it was creating the statement from the wrong connection