 
     save: (id, attributes, callback) ->
         attributes.docType = @getDocType()
-        @db.get attributes.id, (err, doc) =>
+        PouchdbBackedModel.db.get attributes.id, (err, doc) =>
             if err
                 callback err
             else if not doc?

        view.reduce = reduce.toString() if reduce?

        viewName = "_design/#{docType.toLowerCase()}"
        @db.get viewName, (err, designDoc) =>
            unless designDoc?
                designDoc =
                    _id: viewName

                callback null, true

    find: (id, callback) ->
        PouchdbBackedModel.db.get id, (err, doc) =>
            if err
                callback err
            else if not doc?
