added recursive lookup based on db.locals to hitwrapper