code: def keys(self, remote=False):
          
          if not remote:
              return list(super(CouchDatabase, self).keys())
          docs = self.all_docs()
          return [row['id'] for row in docs.get('rows', [])]
docs: Retrieves the list of document ids in the database.  Default is
          to return only the locally cached document ids, specify remote=True
          to make a remote request to include all document ids from the remote
          database instance.
  
          :param bool remote: Dictates whether the list of locally cached
              document ids are returned or a remote request is made to include
              an up to date list of document ids from the server.
              Defaults to False.
  
          :returns: List of document ids