Type parsing for node-postgres