renaming private function and correcting dbparams assign location