def selected(data, select):
    """
    Takes data and removes any values/columns not in SELECT parameter
    :param data: List of data entries to be SELECT'ed. ex:
                [
                    { 'stb': 'stb1',
                      'title': 'the matrix',
                      'rev': '6.00',
                      'date': '2017-05-01',
                      'provider': 'Warner Brothers',
                      'time': '12:30' },
                    { ... }
                ]
    :param select: List of SELECT parameters. ex: ['stb', 'rev', 'title']
    :return: List of data with only keys matching SELECT parameters
    """
    result = []
    for entry in data:
        result += [{key: entry[key] for key in select}]

    return result