added Prolog interface for transform lookup in log DB