import pickle


def read_database_file(filename): #kind of unnecessary?
    """
    Reads database file into database object

    Parameters
    ----------
    filename : String
        filename

    Returns
    -------
    database : dictionary
    """
    with open(filename, 'rb') as file:
        db = pickle.load(file)
        print(type(db))
        print(db)
        return db