utilities for getting data from django to couch