Returned to Int dates in queries and results
app.js: some corrections on date handling