I'm a beginner. I need to export the result of the SQL query in JSON format and, based on this query, roll the page using the JS template engine (for example, nunjucks). I am interested in using what programs I can do it and an approximate algorithm for how to do it. Thank.