variables and map driven by external database