code: def open(self):
          
          # guess protocol
          if self.protocol==0:
              _in = open(self.name) # don't specify binary mode !
          else:
              _in = open(self.name,'rb')
          self.fields = cPickle.load(_in)
          self.next_id = cPickle.load(_in)
          self.records = cPickle.load(_in)
          self.indices = cPickle.load(_in)
          for f in self.indices.keys():
              setattr(self,'_'+f,Index(self,f))
          _in.close()
          self.mode = "open"
          return self
docs: Open an existing database and load its content into memory