def read_database(file_name):
    """
    Read the method templates from a file.

    The first line contains the arguments for this method. All other lines
    contain the methods body.
    """
    with open(file_name, 'r') as file_obj:
        lines = file_obj.readlines()

    methods = {}
    name = ''
    for line in lines:
        if 'def' in line.split():
            # found the start of a new method
            name = line.split()[1].split('(')[0]
            arguments = line.split()[1].split('(')[1].split(')')[0]
            methods[name] = [arguments]
            continue

        # This is a line that is not part of a definition.
        methods[name].append(line)

    return methods