int rmUsr(String id, String userName) throws ClassNotFoundException, InstantiationException, IllegalAccessException, SQLException {

        Class.forName("com.mysql.jdbc.Driver").newInstance();
        Connection con = DriverManager.getConnection(url, dbUser, dbPass);
        Statement stm = con.createStatement();
        String query = "delete from messaging.main where ID='" + id + "' and userName='" + userName + "'";
        if (stm.executeUpdate(query) == 1) {
            return 1;
        } else {
            return 0;
        }

    }