This is just for fun/research, I don't need a web framework because PHP is actually picking up the incoming requests and sending it to a pgsql stored function. The pgsql will concatenate all the html that is required for the page and send it back to PHP to write out to the response.
My main concern is, since there will be a lot of concatenation in pgsql to generate the HTML, would it affect performance?