fix dbhelper memory leak.