changed the setDB to be a private function