code: def update(self, field_dict, where_clause=None):
          '''
          update db entry
  
          :param field_dict: dictionary of fields and values
          :param where_clause: where clause for the update
          '''
          query = '''
          UPDATE %s SET %s
          ''' % (
              self._name,
              ','.join('%s=:%s' % (k, k) for k in field_dict)
          )
          if where_clause:
              query += ' WHERE %s' % (where_clause)
          self._cursor.execute(query, field_dict)
          self._connection.commit(f update(self, field_dict, where_clause=None):
          '''
          update db entry
  
          :param field_dict: dictionary of fields and values
          :param where_clause: where clause for the update
          '''
          query = '''
          UPDATE %s SET %s
          ''' % (
              self._name,
              ','.join('%s=:%s' % (k, k) for k in field_dict)
          )
          if where_clause:
              query += ' WHERE %s' % (where_clause)
          self._cursor.execute(query, field_dict)
          self._connection.commit()
docs: update db entry
  
          :param field_dict: dictionary of fields and values
          :param where_clause: where clause for the update