private void insertData(SymptomsData data) {
    Connection connection = null;
    Statement statement = null;
    try {
      connection = DatabaseHelper.getConnection();
      statement = connection.createStatement();

      String query =
          "Insert into medicine_table values("
              + data.getId()
              + ", '"
              + data.getSymptoms()
              + "', '"
              + data.getMedicines()
              + "')";
      statement.executeUpdate(query);

    } catch (SQLException e) {
      e.printStackTrace();
    } finally {
      if (connection != null) {
        try {
          connection.close();
        } catch (SQLException e) {
          e.printStackTrace();
          System.out.println(e);
        }
      }
    }
  }