Use Django caches instead of sql for tasks.

Change-Id: I99abe3912cdfe0ed47430ce3ee4d0ff7c6ade9af
Fix institute trend graphs.

Change-Id: I3ee9dba77b6013dcdb147ee6e9d321dce7c586fc