Allow queries to be smarter about when they run

Every time a graph is now generated it will log when it happened
each graph must state when they should be generated, any graphs
that have been generated too recently will be skipped.

Change-Id: I4da0c248cc5fef7c33dbe9f084c3c6b713db84c7