Michael: fixed internal error, fixed all known problems with main map
	 for cluttering and fixed report list adding to sql query