fixed some bugs in dbconnectest