New download_data

Now the function actually returns all events corresponding to the
specified date, not the events logged in the specified date. Old
version is renamed to download_data_LEGACY.