code: def write_result(self, data):
          
          data['custom_timers'] = ujson.dumps(data['custom_timers'])
          self.results.append(data)
  
          if len(self.results) >= 150:  # 150 rows for SQLite default limit
              with db.execution_context():
                  with db.atomic():
                      Result.insert_many(self.results).execute()
                  del self.results[:]
docs: Write the results received to the database
          :param dict data: the data to save in database
          :return: None