<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, records, context):
 """ Updates the modified data in the database for the inputted record. If the dryRun flag is specified then the command will be logged but not executed. :param record | <orb.Table> lookup | <orb.LookupOptions> options | <orb.Context> :return <dict> changes """

        UPDATE = self.statement('UPDATE')
        sql, data = UPDATE(records)
        if context.dryRun:
            print sql, data
            return [], 0
        else:
            return self.execute(sql, data, writeAccess=True)