import csv


def load_database(filename):
    """Load database from a CSV file

    Args:
        filename: the filename of the database

    Returns:
        dictionary containing application data
    """
    database = {}
    with open(filename) as csvfile:
        recipereader = csv.DictReader(csvfile, delimiter=',', quotechar='"')
        for row in recipereader:
            database[row['id']] = row
    return database