some small changes to dbhelper.