update dbhelper to use config