minor bug fix in dbhelper