import pickle


def load(file_name):
    """Loads a pre-generated database


    Args:
        file_name (str): Dabase file name/path.

    Returns:
        Database.Database: Database object.

    Example:
        >>> db = Database.load('MyDatabase.pkl')

    """
    with open(file_name, 'rb') as inpkl:
        db = pickle.load(inpkl)
    return db