added datatype mapper, removed pg2json internas call