public JSONObject getURLSForCategoriesTag(int cat_id)
	{
		try {
			
					Class.forName(JDBC_DRIVER);
					conn=DriverManager.getConnection(DB_URL,USER,PASS);
				
					stmt=conn.createStatement();
					json=new JSONObject();
					
					ResultSet rsTemp = null;
					Statement stmt1=conn.createStatement();
					
					
					String SQL="select image_id from image_cats where cat_id='"+cat_id+"' LIMIT 5";
					
					rs=stmt.executeQuery(SQL);
					
					
				
					if(rs.isBeforeFirst())
					{
						json.put(SUCCESS, 1);
						StringBuffer urls=new StringBuffer();
						while(rs.next())
							{
								rsTemp=stmt1.executeQuery("select url from images where id='"+rs.getString("image_id")+"'");
								rsTemp.next();
								urls.append(rsTemp.getString("url")+",");
							}
							json.put("URLS", urls.toString());
					}else
					{
						json.put(SUCCESS, 0);
					}
					rs.close();
		        	stmt.close();	
		        	
				} catch (ClassNotFoundException e) {
					e.printStackTrace();
				} catch (SQLException e) {
					e.printStackTrace();
				}
				finally
				{
			      try{
			        	
			            if(conn!=null)
			            conn.close();
			         }catch(SQLException se){
			            se.printStackTrace();
			         }
			    }
				
				return(json);
	}