code: def get_database_name(self):
          
          uri_dict = uri_parser.parse_uri(self.host)
          database = uri_dict.get('database', None)
          if not database:
              raise "database name is missing"
          return database
docs: extract database from connection string