Logging last refresh, need to modify datasource query to take date into account