public JSONObject addCategoryAction(String UserID, String action, String ImageId, String TargetId, String targetValue)
	{
		try {
					Class.forName(JDBC_DRIVER);
					conn=DriverManager.getConnection(DB_URL,USER,PASS);
				
					stmt=conn.createStatement();
					json=new JSONObject();
					
					
					String SQL="insert into category_actions(user_id,action,image_id,target_id,target_value) values"
							+ "('"+UserID+"','"+action+"','"+ImageId+"','"+TargetId+"','"+targetValue+"')";
					
					json.put(SUCCESS, -1);
					json.put("error", SQL);
					
					int result=stmt.executeUpdate(SQL);
					
					if(result>0)
					{
						json.put(SUCCESS, 1);
						json.put("msg", "Successfully inserted data");
					}else
					{
						json.put(SUCCESS, -1);
						json.put("error", SQL);
					}
					stmt.close();	
					
				} catch (ClassNotFoundException e) {
					e.printStackTrace();
				} catch (SQLException e) {
					json.put("error1", e.getMessage());
					e.printStackTrace();
				}
				finally
				{
			      try{			        	
			            if(conn!=null)
			            conn.close();
			         }catch(SQLException se){
			            se.printStackTrace();
			         }
			    }
				
				return(json);
	}