public void SQLCreateTableForFirst() {
    String tname= "profile";
    boolean founds=false;
    
    try {
      MyCon = new SQLConnection();
      c = MyCon.getConnection("journal");
      md = c.getMetaData();
      rs = md.getTables(null, null, "%", null);
      while (rs.next()) {
        if (rs.getString(3).equals(tname)) {
          founds = true;
          break;
        }
      }
      stmt = c.createStatement();
      if (!founds) {
        if (tname.equals("profile"))
           SQL = "create table profile(username varchar(100) ,password varchar(100) , firstname varchar(100),"
                                + "lastname varchar(100), studentID varchar(100) , birdthday varchar(30) , telephone varchar(20),"
                                + "email varchar(100),facebook varchar(100),status varchar(7));";
        stmt.executeUpdate(SQL);
        
      }
      else {

      }
      SQL = "create table usertemp(id int, useUsername varchar(100));";
                        stmt.executeUpdate(SQL);
                        SQL = "insert into usertemp(id,useUsername) values(1,'temp');";
                        stmt.executeUpdate(SQL);
                        SQL = "insert into usertemp(id,useUsername) values(2,'temp2');";
                        stmt.executeUpdate(SQL);
    }
    catch (SQLException ex) {
      System.out.println(ex);
    }
  }