def get_db_collection_names(db_collection_string):
    """
  
    :param db_collection_string: A string like someDb.someCollection or just someCollection, which is interpreted as someCollection.someCollection.
    :return: An object with db and collection names.
    """
    name_parts = db_collection_string.split(".")
    assert len(name_parts) > 0
    obj = {"db": name_parts[0],
           "collection": name_parts[0],
           }
    if len(name_parts) == 2:
        obj["collection"] = name_parts[1]
    return obj