added functions to test array members for validity
diverted insert into db into epg table instead of polluting schedule table with possible duplicates
changed channel argument to be the radio times id rather than the freeview name
changed grabber to pass the radio times id to the epg class
changed grabber to die after 5 minutes (itv seems to go on forever, without repeating the same eventid, still need to check this)
added the fromrtid field to the epg table
fixed bug where the scheduled program was not found, and the epg data was inserted into the incorrect table
fixed bug where the incorrect field name was being requested from the channel table
fixed bug when building the sql statement for insertion into epg, whith misplaced commas
updated insert into epg to include the eventid (dunno why I might want this, but there you are)
Added GPL v3 stanza to each file