added basic ineffient query by location.

Also, random colour for backgrounds