@@ -0,0 +1,1494 @@
+package src;%0D%0A%0D%0Aimport java.sql.Connection;%0D%0Aimport java.sql.DatabaseMetaData;%0D%0Aimport java.sql.ResultSet;%0D%0Aimport java.sql.SQLException;%0D%0A%0D%0Aimport com.mysql.jdbc.Statement;%0D%0Aimport com.mysql.jdbc.jdbc2.optional.MysqlDataSource;%0D%0A%0D%0Apublic class SqlHelper %7B%0D%0A  %0D%0A  String user;%0D%0A  String password;%0D%0A  String server;%0D%0A  MysqlDataSource dataSource;%0D%0A  Connection connection;%0D%0A  %0D%0A  public SqlHelper(String user, String password, String server)%7B%0D%0A    %0D%0A    this.user = user;%0D%0A    this.password = password;%0D%0A    this.server = server;%0D%0A    %0D%0A    dataSource = new MysqlDataSource();%0D%0A    dataSource.setUser(user);%0D%0A    dataSource.setPassword(password);%0D%0A    dataSource.setServerName(server);%0D%0A    dataSource.setDatabaseName(%22FBminer2%22);%0D%0A    %0D%0A    %0D%0A  %7D%0D%0A  %0D%0A  public void connect()%7B%0D%0A    try %7B%0D%0A      connection = dataSource.getConnection();%0D%0A      System.out.println(%22Connection Succesful %22);%0D%0A      %0D%0A      Statement state = (Statement) connection.createStatement();%0D%0A%0D%0A      System.out.println(%22getting info...%22);%0D%0A      ResultSet result = state.executeQuery(%22SELECT user_name, user_id, app01_id FROM UserRegistry WHERE app01_id IS NOT NULL LIMIT 10 %22);%0D%0A      System.out.println(%22result acquired%22);%0D%0A      result.next();%0D%0A      System.out.println(%22result: %22 + result.getString(1) + %22 %22 + result.getString(2) + %22 %22 + result.getString(3));%0D%0A      result.close();%0D%0A      state.close();%0D%0A      connection.close();%0D%0A      %0D%0A    %7D catch (SQLException e) %7B%0D%0A      e.printStackTrace();%0D%0A    %7D%0D%0A  %7D%0D%0A%0D%0A%7D%0D%0A

Add sqlHelper class