public static boolean mysqlExists(String query)
  {
    ResultSet result = null;
      try {
        result = MySQLCore.executeQuery(query, false);
      } catch (SQLException e) {
        e.printStackTrace();
      }
    try
    {
      if ((result != null) && (result.next()))
        return true;
    }
    catch (SQLException e) {
      e.printStackTrace();
    }
    return false;
  }