Updated Sql with a DRY pass. Substantially reduced the code size. Still hate the var being used to track AutoCloseables.