fix some jdbc conncetion issues