Fixed App.js and Db.js

The way it use to work was the app.js would recieved data from the client and then process the information to db.js,. The db.js would get data from the database and then forward the data straight to the client. The new way is that the db.js now send the data to app.js via callback functions and then app.js return it to the client.