public static boolean executeUpdate(String sql, CommandArgument[] args, CommandArgument[] selectArgs)
	{
		PreparedStatement stat = null;
		try {
			stat = connection.prepareStatement(sql);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		try {


		int i=0;
		for (; i < selectArgs.length; i++)
		{
			stat = setPreparedStatementArgument(stat,selectArgs[i],i+1);			
		}
		for (int i2 =0; i2 < args.length; i2++)
		{
			stat = setPreparedStatementArgument(stat,args[i2],i+1);			
			i++;
		}


		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}				

		int count = 0;
		try {
			count = stat.executeUpdate();			
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		String newValues = " ";
		for (CommandArgument arg: selectArgs){
			newValues = newValues + arg.getValue().toString() + " , ";
			
		}
		String id = "";
		for (CommandArgument arg: args){
			id = id + arg.getValue().toString();
		}
		
		LOGGER.info( sql + " was run and with the following corresponding values:" + newValues + "for ID " + id + ".");

		if (count == 1)
			return true;
		return false;
	}