def update_content(self, values):

        try:
            with self._db_instance:
                # update database

                if values['attribute'] != 'link':
                    self._db_instance.execute('''
                        UPDATE Dictionary SET {0} = ? WHERE problem = ? AND language = 
                        (SELECT language from Languages where language = ?)
                    '''.format(values['attribute']),
                        (values['data'],
                         values['problem'],
                         values['language']))
                else:
                    self._db_instance.execute('''
                        UPDATE Links SET {0} = ? WHERE problem = ? AND language = 
                        (SELECT id from Languages where language = ?)
                    '''.format(values['attribute']),
                        (values['data'],
                         values['problem'],
                         values['language']))

        except sqlite3.Error as error:
            print "A database error has ocurred: ", error
            sys.exit(1)
Fetch the repo. If the local copy was updated, return True. If the
dataset/ETHPy150Open BastiPaeltz/codedict/source/database.py/Database.update_content--crossover with--dataset/ETHPy150Open saltstack/salt/salt/utils/gitfs.py/GitProvider.fetch