code: def create_cache_database(self):
          
  
          conn = sqlite3.connect(self.database)
          conn.text_factory = str
  
          c = conn.cursor()
          c.execute("""CREATE TABLE items
                       (url text, metadata text, datetime text)""")
          c.execute("""CREATE TABLE documents
                       (url text, path text, datetime text)""")
          c.execute("""CREATE TABLE primary_texts
                       (item_url text, primary_text text, datetime text)""")
          conn.commit()
          conn.close()
docs: Create a new SQLite3 database for use with Cache objects
  
  
          :raises: IOError if there is a problem creating the database file