saves user details in app.js to db and displays all the results from the db.