code: def execute_sql(self, sql, commit=False):
          
          logger.info("Running sqlite query: \"%s\"", sql)
          self.connection.execute(sql)
          if commit:
              self.connection.commit()
docs: Log and then execute a SQL query