added db.js
move index.js into app dir
unfucked path the public