Getting the current URL:
var fullURL = req.protocol + "://" + req.get('host') + req.url
Looping through records one at a time:
database.each(sql, function(err, row) { console.log(row.id + ": " + row.title) genres.push(row.title) })
There was an error while loading. Please reload this page.