Added database and altered web.js