updated app.js with sql database