protected void ExecuteDatabaseQuery(String sql, Boolean async = false) { if (IsUnix()) { try { using (SqliteConnection db = new SqliteConnection(ConnectionString)) { db.Open(); using (SqliteCommand cmd = new SqliteCommand(sql, db)) { if (async) { cmd.ExecuteNonQueryAsync(); } else { cmd.ExecuteNonQuery(); } } } } catch (Exception) { // ignored } } else { /*try {*/ using (SQLiteConnection db = new SQLiteConnection(ConnectionString)) { db.Open(); using (SQLiteCommand cmd = new SQLiteCommand(sql, db)) { if (async) { cmd.ExecuteNonQueryAsync(); } else { cmd.ExecuteNonQuery(); } } } /* } catch (Exception) { // ignored }*/ } }