public void Connect ()
  {
    try
    {
      Class.forName(driver).newInstance();
      conn = DriverManager.getConnection(url, user, password);
      if (!conn.isClosed())
        System.out.println("Succeeded connecting to the Database!");
      else
        System.out.println("Failed connecting to the Database!");
    } catch (SQLException e) {
      e.printStackTrace();
    } catch (ClassNotFoundException e) {
      e.printStackTrace();
    } catch (InstantiationException e) {
      e.printStackTrace();
    } catch (IllegalAccessException e) {
      e.printStackTrace();
    }
    InitTables();
  }