display Postgres output properly by using print_format()