Fixed bugs in dbinfo