cache db comparisons and make request async
use generic view model
Merge pull request #4037 from dimagi/cachecomparisons

cache db comparisons and make request async