old_contents: import os
  import couchdb
  
  from datetime import datetime
  from couchdb.mapping import Document, TextField, DateTimeField, ListField, FloatField, IntegerField, BooleanField
  from flask import g
  
  class AvailableCar(Document):
      
      doc_type = TextField(default='available_cars')
      owner = TextField()
      start = TextField()
      end = TextField()
  
      def save(self):
          db = g.db
          self.store(db)
new_contents: import os
  import couchdb
  
  from datetime import datetime
  from couchdb.mapping import Document, TextField, DateTimeField, ListField, FloatField, IntegerField, BooleanField
  from flask import g
  
  class AvailableCar(Document):
      
      doc_type = TextField(default='available_cars')
      owner = TextField()
      start = TextField()
      end = TextField()
  
      def save(self):
          db = g.db
          self.store(db)
  
      @classmethod
      def all(cls):
      	db = g.db
          return cls.view(db,'_design/cars/_view/all-cars/')
subject: Add all() method