code: async function insert(connection, table, data){
  
      // execute query
      const [result] = await _query(connection, 'INSERT INTO ?? SET ?', [table, data]);
  
      // return id + result
      return [result.insertId || null, result];
  }
docs: insert data