renamed db.js and moved index.html outside of views