private String checkName(String fileName)
	{
		String sqlCommand = "SELECT * " +
							"FROM FileRecord " +
							"WHERE File_Name = ? " +
							"AND " +
							"UserID = ? " +
							"ORDER BY File_Name DESC";
		
		String[] values = new String[]{fileName + "_*", "2"};
		int append = 2;
		String temp = null;
		try 
		{
			sdc.connectToDatabase();
			
			sdc.setPreparedStatement(sqlCommand, values);
			
			sdc.performReadAction();
			
			ResultSet rs = sdc.getResultSet();
			
			if(rs.next())
			{
				rs.first();
				temp = rs.getString("File_Name");
			}
		} 
		
		catch (SQLException e) 
		{
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		finally
		{
			try {
				sdc.closeConnection();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
		
		String name = null;
		
		
			char check = '.';
		
			for(int i = fileName.length() - 1; i >= 0; i--)
			{
				if(check == fileName.charAt(i))
				{
					name = fileName.substring(0,i);	
				}
			}
			
		if(temp != null)
		{
			for(int i = temp.length() - 1; i >= 0; i--)
			{
				if(check == temp.charAt(i))
				{
					append = Integer.parseInt(temp.substring(i - 1,i));
					
					append++;
				}
			}
		}
		
		name += "_";
		
		name += append;
		
		name += ".gif";
		
		return name;
	}