replacing eval in multidb template with globals() function lookup
applied mikes patch