Simplified some jdbc code.