helper functor module to map some table rows into other object like json.