add app setting for database name,
add new errors.js for custom javascript errors,
add new db.js for mongo db connection