I currently have a query in my node js that looks like this:

```
app.get('/fav/books', function(req, res){
var sql = ("SELECT title, pictureUrl, author, description, genre FROM books")
  connection.query(sql, function(err, result){
    if(err) {
      console.log('Error in the query.');
    } else {
      console.log('Success!\n');
      console.log(result);
      var book = result;
      return book;
    }
  });
});

```

And outputs to console like this:
[Console Output](https://i.stack.imgur.com/X4Lud.png)

I want to "return book;" to the user with handlebars in a sort of card output like this:

```
<div class="page-carousel">
  <div class="panel id1">
    <img href="pictureUrl"/>
    <h3>title</h3>
    <p><strong>author</strong></p>
    <p>description</p>
    <p>genre</p>
  </div>
</div>

```

The panel would be the ID of the Book as it needs to create as many panels as there are IDs. The book information would be as is.