createTable did not use private function to connect