public static int setData(Connection connection, String query) throws SQLException {
        Statement stm = connection.createStatement();
        int res = stm.executeUpdate(query);
        return res;
    }