Thanks for the tip Dan. I had read the Wimpy presentation and the section on db_map. But, as I said in my original post, the example in the Wimpy presentation did not help me in my question. It wasn't clear as to what should I do in that case.
I'll add some more examples to that slide.