@peterbe hmm yeah I think this bit needs to be rethought - what we really want is to cover the entire range of every table, so I think we need to be checking that the ```start_date``` is less and the ```end_date``` greater than the one already found (note to self) so these should probably be ```datetime``` objects and the formatting should happen outside of the loop.