This just prints out the relevant tables. The output has to be parsed and serialized into JSON format in order for the React app to consume the data.