Database

\Drupal::database()
  ->insert('tablename')
  ->fields([
    'field1' => 'abc',
    'field2' => 999,
    ...
  ])
  ->execute();