old_contents: import sqlite3
  import shelve
  
  
  def connect_db(name):
      """
      Open a connection to the database used to store quotes.
  
      :param name: (str) Name of database file
  
      :return: (shelve.DbfilenameShelf)
      """
      try:
          return shelve.open(name)
      except Exception:
          raise Exception('Unable to connect to database with name {}'.format(name))
  
  
  class DBClient(object):
      """Client for interacting with database for the application"""
  
      def __init__(self, database_name: str):
          self.conn = sqlite3.connect(database_name)
          self._create_quotes_table()
  
      def _create_quotes_table(self):
          """
          Create the table used for storing quotes if it does not exist already
          """
          with self.conn:
              self.conn.execute('''
                  CREATE TABLE IF NOT EXISTS quotes (
                      author TEXT,
                      quote TEXT,
                      created_at TEXT
                  );
              ''')
  
      def close_connection(self):
          """
          Close connection to the database
          """
          self.conn.close()
  
      def insert_quote(self, author: str, quote: str, created_at: str):
          """
          Insert a quote into the database
  
          :param author: (str) Name of the author that said the quote
          :param quote: (str) The quote for the author
          :param created_at: (str) Timestamp for when the quote was saved to database
          """
          with self.conn:
              self.conn.execute('''
                  INSERT INTO quotes VALUES (?, ?, ?)
              ''', (author, quote, created_at))
  
new_contents: import sqlite3
  import shelve
  
  
  def connect_db(name):
      """
      Open a connection to the database used to store quotes.
  
      :param name: (str) Name of database file
  
      :return: (shelve.DbfilenameShelf)
      """
      try:
          return shelve.open(name)
      except Exception:
          raise Exception('Unable to connect to database with name {}'.format(name))
  
  
  class DBClient(object):
      """Client for interacting with database for the application"""
  
      def __init__(self, database_name: str):
          self.conn = sqlite3.connect(database_name)
          self._create_quotes_table()
  
      def _create_quotes_table(self):
          """
          Create the table used for storing quotes if it does not exist already
          """
          with self.conn:
              self.conn.execute('''
                  CREATE TABLE IF NOT EXISTS quotes (
                      id INTEGER PRIMARY KEY,
                      author TEXT,
                      quote TEXT,
                      created_at TEXT
                  );
              ''')
  
      def close_connection(self):
          """
          Close connection to the database
          """
          self.conn.close()
  
      def insert_quote(self, author: str, quote: str, created_at: str):
          """
          Insert a quote into the database
  
          :param author: (str) Name of the author that said the quote
          :param quote: (str) The quote for the author
          :param created_at: (str) Timestamp for when the quote was saved to database
          """
          with self.conn:
              self.conn.execute('''
                  INSERT INTO quotes (author, quote, created_at) VALUES (?, ?, ?)
              ''', (author, quote, created_at))
  
subject: Add id field to quotes table