getting closer with new data + instance

Still, nothing is working. I have a correct (I think!)
data type for getting the result of the psql query,
but I need to figure out the return type now in the
main block.